tidy py sdk

This commit is contained in:
Kenneth Bingham
2025-01-28 18:53:14 -05:00
parent fe056a2ccc
commit 6d4cc020ce
2 changed files with 5 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ class ProxyShare:
method=request.method, method=request.method,
url=url, url=url,
headers={key: value for (key, value) in request.headers headers={key: value for (key, value) in request.headers
if key.lower() not in HOP_BY_HOP_HEADERS}, if key.lower() not in HOP_BY_HOP_HEADERS},
data=request.get_data(), data=request.get_data(),
cookies=request.cookies, cookies=request.cookies,
allow_redirects=False, allow_redirects=False,
@@ -144,7 +144,7 @@ class ProxyShare:
# Create the response # Create the response
excluded_headers = HOP_BY_HOP_HEADERS.union({'host'}) excluded_headers = HOP_BY_HOP_HEADERS.union({'host'})
headers = [(name, value) for (name, value) in resp.raw.headers.items() headers = [(name, value) for (name, value) in resp.raw.headers.items()
if name.lower() not in excluded_headers] if name.lower() not in excluded_headers]
return Response( return Response(
resp.iter_content(chunk_size=10*1024), resp.iter_content(chunk_size=10*1024),