From 8b32b9e23963d1c96198b8b299209c8eb307b75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=B9i=20Th=C3=A0nh=20Nh=C3=A2n?= Date: Sat, 18 Sep 2021 09:22:16 +0700 Subject: [PATCH] fix response header popping --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 1b146bd..1d83761 100644 --- a/app.py +++ b/app.py @@ -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, -- 2.45.2