From b3f05966526f46b3239bfa57fe32ed62252221b9 Mon Sep 17 00:00:00 2001 From: arjun23496 Date: Mon, 29 Aug 2016 16:57:20 +0530 Subject: [PATCH] Minor bug fix - messages.py replace --- netlib/http/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlib/http/message.py b/netlib/http/message.py index b84f45c5f..0b64d4a60 100644 --- a/netlib/http/message.py +++ b/netlib/http/message.py @@ -278,7 +278,7 @@ class Message(basetypes.Serializable): self.content, replacements = re.subn( pattern, repl, self.content, flags=flags, count=count ) - replacements += self.headers.replace(pattern, repl, flags) + replacements += self.headers.replace(pattern, repl, flags=flags, count=count) return replacements # Legacy