remove old server replay workaround, fix #774

This commit is contained in:
Maximilian Hils 2015-09-18 13:27:05 +02:00
parent 906360f63f
commit 5df5ee15f2

View File

@ -244,13 +244,9 @@ class ServerPlaybackState:
_, _, path, _, query, _ = urlparse.urlparse(r.url) _, _, path, _, query, _ = urlparse.urlparse(r.url)
queriesArray = urlparse.parse_qsl(query, keep_blank_values=True) 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 = [ key = [
str(r.port), str(r.port),
str(scheme), str(r.scheme),
str(r.method), str(r.method),
str(path), str(path),
] ]