Update change_upstream_proxy.py (#6853)

Script was not working as ServerSpec accepts a tuple, which was not supplied. I fixed it so a tuple is supplied to ServerSpec
This commit is contained in:
fosple 2024-05-18 12:06:48 +02:00 committed by GitHub
parent d6dc12c835
commit 0503fbb63a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -31,4 +31,4 @@ def request(flow: http.HTTPFlow) -> None:
# server_conn already refers to an existing connection (which cannot be modified), # server_conn already refers to an existing connection (which cannot be modified),
# so we need to replace it with a new server connection object. # so we need to replace it with a new server connection object.
flow.server_conn = Server(address=flow.server_conn.address) flow.server_conn = Server(address=flow.server_conn.address)
flow.server_conn.via = ServerSpec("http", address) flow.server_conn.via = ServerSpec(("http", address))