aports/testing/mitmproxy/py311.patch
2022-11-24 07:13:48 +01:00

14 lines
508 B
Diff

diff --git a/mitmproxy/contentviews/grpc.py b/mitmproxy/contentviews/grpc.py
index a5ef997..5c73220 100644
--- a/mitmproxy/contentviews/grpc.py
+++ b/mitmproxy/contentviews/grpc.py
@@ -951,7 +951,7 @@ def format_grpc(
@dataclass
class ViewConfig:
- parser_options: ProtoParser.ParserOptions = ProtoParser.ParserOptions()
+ parser_options: ProtoParser.ParserOptions = field(default_factory=ProtoParser.ParserOptions)
parser_rules: list[ProtoParser.ParserRule] = field(default_factory=list)