mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
remove old server replay workaround, fix #774
This commit is contained in:
parent
906360f63f
commit
5df5ee15f2
@ -244,13 +244,9 @@ class ServerPlaybackState:
|
||||
_, _, path, _, query, _ = urlparse.urlparse(r.url)
|
||||
queriesArray = urlparse.parse_qsl(query, keep_blank_values=True)
|
||||
|
||||
# scheme should match the client connection to be able to replay
|
||||
# although r.scheme may have been changed to http to connect to upstream server
|
||||
scheme = "https" if flow.client_conn and flow.client_conn.ssl_established else "http"
|
||||
|
||||
key = [
|
||||
str(r.port),
|
||||
str(scheme),
|
||||
str(r.scheme),
|
||||
str(r.method),
|
||||
str(path),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user