mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +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(
|
self.content, replacements = re.subn(
|
||||||
pattern, repl, self.content, flags=flags, count=count
|
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
|
return replacements
|
||||||
|
|
||||||
# Legacy
|
# Legacy
|
||||||
|
Loading…
Reference in New Issue
Block a user