summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.io>2022-02-15 21:09:36 +0100
committerGravatar Tom van der Lee <tom@vanderlee.io>2022-02-15 21:09:36 +0100
commite2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde (patch)
treea9ada9381e8596c8b3d24bdbf40d1bf6b5424044
parent20cea425b29576dc4131f643d16519f4fd54ba84 (diff)
downloadclient-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.tar.gz
client-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.tar.bz2
client-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.zip
Fixed issue with encoding
-rw-r--r--ttun/client.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ttun/client.py b/ttun/client.py
index 41d1a86..fe51b1a 100644
--- a/ttun/client.py
+++ b/ttun/client.py
@@ -95,7 +95,11 @@ class Client:
95 95
96 response_data = ResponseData( 96 response_data = ResponseData(
97 status=response.status, 97 status=response.status,
98 headers=list(response.headers.items()), 98 headers=[
99 (key, value)
100 for key, value in response.headers.items()
101 if key.lower() not in ["transfer-encoding", "content-encoding"]
102 ],
99 body=b64encode(await response.read()).decode(), 103 body=b64encode(await response.read()).decode(),
100 ) 104 )
101 105