diff options
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/http/headers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/netlib/http/headers.py b/netlib/http/headers.py index 60a36515..f4cf8b7b 100644 --- a/netlib/http/headers.py +++ b/netlib/http/headers.py @@ -185,6 +185,8 @@ class Headers(multidict.MultiDict): else: count -= n replacements += n + if count == 0: + break; fields.append((name, value)) self.fields = tuple(fields) return replacements |