~nhanb/gae-proxy

8b32b9e23963d1c96198b8b299209c8eb307b75b — Bùi Thành Nhân 3 years ago 0855005
fix response header popping
1 files changed, 2 insertions(+), 2 deletions(-)

M app.py
M app.py => app.py +2 -2
@@ 65,8 65,8 @@ def hello_world(path):
    target_resp = send(target_url, headers=target_headers)

    resp_headers = dict(target_resp.headers)
    resp_headers.pop("Content-Encoding", None)
    resp_headers.pop("Transfer-Encoding", None)
    resp_headers.pop("content-encoding", None)
    resp_headers.pop("transfer-encoding", None)

    return Response(
        response=target_resp.content,