Skip to content

Commit 015dcca

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents ee86ad4 + f0de283 commit 015dcca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeboxapi/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def handle_response(response: requests.Response):
5151
raise CodeBoxError(
5252
http_status=response.status_code,
5353
json_body=response.json(),
54-
headers=response.headers.__dict__,
54+
headers=dict(response.headers.items()),
5555
)
5656
return handler(response)
5757

@@ -85,7 +85,7 @@ async def default_handler(r: ClientResponse) -> dict:
8585
raise CodeBoxError(
8686
http_status=response.status,
8787
json_body=await response.json(),
88-
headers=response.headers.__dict__,
88+
headers=dict(response.headers.items()),
8989
)
9090
return await handler(response)
9191

0 commit comments

Comments
 (0)