mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Minor bug fix - messages.py replace
This commit is contained in:
parent
99744cc780
commit
b3f0596652
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user