mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
correct spelling mistakes
This commit is contained in:
parent
c87294dc60
commit
043d18ff73
@ -407,7 +407,7 @@ class HttpLayer(base.Layer):
|
||||
self.channel.ask("responseheaders", f)
|
||||
|
||||
self.log("response", "debug", [repr(f.response)])
|
||||
if hasattr(self, 'has_tailers') and self.has_tailers:
|
||||
if hasattr(self, 'has_trailers') and self.has_trailers:
|
||||
f.response.data.trailers = self.read_trailers_headers()
|
||||
self.channel.ask("response", f)
|
||||
|
||||
|
@ -424,7 +424,7 @@ class Http2SingleStreamLayer(httpbase._HttpTransmissionLayer, basethread.BaseThr
|
||||
self.response_data_finished = threading.Event()
|
||||
|
||||
self.no_body = False
|
||||
self.has_tailers = False
|
||||
self.has_trailers = False
|
||||
self.trailers_header = None
|
||||
|
||||
self.priority_exclusive: bool
|
||||
@ -602,11 +602,11 @@ class Http2SingleStreamLayer(httpbase._HttpTransmissionLayer, basethread.BaseThr
|
||||
@detect_zombie_stream
|
||||
def update_trailers(self, headers):
|
||||
self.trailers_header = headers
|
||||
self.has_tailers = True
|
||||
self.has_trailers = True
|
||||
|
||||
@detect_zombie_stream
|
||||
def send_trailers_headers(self):
|
||||
if self.has_tailers and self.trailers_header:
|
||||
if self.has_trailers and self.trailers_header:
|
||||
with self.connections[self.client_conn].lock:
|
||||
self.connections[self.client_conn].safe_send_headers(
|
||||
self.raise_zombie,
|
||||
@ -675,9 +675,9 @@ class Http2SingleStreamLayer(httpbase._HttpTransmissionLayer, basethread.BaseThr
|
||||
self.raise_zombie,
|
||||
self.client_stream_id,
|
||||
chunks,
|
||||
end_stream = not self.has_tailers
|
||||
end_stream = not self.has_trailers
|
||||
)
|
||||
if self.has_tailers:
|
||||
if self.has_trailers:
|
||||
self.send_trailers_headers()
|
||||
|
||||
def __call__(self): # pragma: no cover
|
||||
|
Loading…
Reference in New Issue
Block a user