We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee86ad4 + f0de283 commit 015dccaCopy full SHA for 015dcca
codeboxapi/utils.py
@@ -51,7 +51,7 @@ def handle_response(response: requests.Response):
51
raise CodeBoxError(
52
http_status=response.status_code,
53
json_body=response.json(),
54
- headers=response.headers.__dict__,
+ headers=dict(response.headers.items()),
55
)
56
return handler(response)
57
@@ -85,7 +85,7 @@ async def default_handler(r: ClientResponse) -> dict:
85
86
http_status=response.status,
87
json_body=await response.json(),
88
89
90
return await handler(response)
91
0 commit comments