diff options
| author | 2022-02-15 21:09:36 +0100 | |
|---|---|---|
| committer | 2022-02-15 21:09:36 +0100 | |
| commit | e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde (patch) | |
| tree | a9ada9381e8596c8b3d24bdbf40d1bf6b5424044 | |
| parent | 20cea425b29576dc4131f643d16519f4fd54ba84 (diff) | |
| download | client-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.tar.gz client-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.tar.bz2 client-e2aed74b7a9807bf87a9bf337c8a2e84a4bcbfde.zip | |
Fixed issue with encoding
| -rw-r--r-- | ttun/client.py | 6 |
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 | ||
