diff options
| -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 | ||
