mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
[sans-io] h1: raise on HTTP trailers
This commit is contained in:
parent
ffa5a69ebf
commit
dee8fb7a39
@ -81,6 +81,8 @@ class Http1Connection(HttpConnection, metaclass=abc.ABCMeta):
|
||||
else:
|
||||
yield ReceiveHttp(ResponseData(self.stream_id, data))
|
||||
elif isinstance(h11_event, h11.EndOfMessage):
|
||||
if h11_event.headers:
|
||||
raise NotImplementedError(f"HTTP trailers are not implemented yet.")
|
||||
if is_request:
|
||||
yield ReceiveHttp(RequestEndOfMessage(self.stream_id))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user