diff options
author | arjun23496 <arjun.k018@gmail.com> | 2016-08-31 16:39:04 +0530 |
---|---|---|
committer | arjun23496 <arjun.k018@gmail.com> | 2016-08-31 16:39:04 +0530 |
commit | a8deed1f4ef5992b1c9c74ac69491bdb5f0e8490 (patch) | |
tree | 6ce6930f0f2db77c7d90bb940b359f4ea5eded73 /netlib/http/headers.py | |
parent | 2476809ff85e6f1b66c931a2eedf552169383573 (diff) | |
download | mitmproxy-a8deed1f4ef5992b1c9c74ac69491bdb5f0e8490.tar.gz mitmproxy-a8deed1f4ef5992b1c9c74ac69491bdb5f0e8490.tar.bz2 mitmproxy-a8deed1f4ef5992b1c9c74ac69491bdb5f0e8490.zip |
Lint fix - minor
Diffstat (limited to 'netlib/http/headers.py')
-rw-r--r-- | netlib/http/headers.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py index 6afe27c7..131e8ce5 100644 --- a/netlib/http/headers.py +++ b/netlib/http/headers.py @@ -174,7 +174,6 @@ class Headers(multidict.MultiDict): replacements = 0 flag_count = count > 0 fields = [] - for name, value in self.fields: line, n = pattern.subn(repl, name + b": " + value, count=count) try: @@ -188,7 +187,7 @@ class Headers(multidict.MultiDict): if flag_count: count -= n if count == 0: - break + break fields.append((name, value)) self.fields = tuple(fields) return replacements |