Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Aug 7, 2023
2 parents ee86ad4 + f0de283 commit 015dcca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codeboxapi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def handle_response(response: requests.Response):
raise CodeBoxError(
http_status=response.status_code,
json_body=response.json(),
headers=response.headers.__dict__,
headers=dict(response.headers.items()),
)
return handler(response)

Expand Down Expand Up @@ -85,7 +85,7 @@ async def default_handler(r: ClientResponse) -> dict:
raise CodeBoxError(
http_status=response.status,
json_body=await response.json(),
headers=response.headers.__dict__,
headers=dict(response.headers.items()),
)
return await handler(response)

Expand Down

0 comments on commit 015dcca

Please sign in to comment.