Skip to content

Commit

Permalink
Convert response headers to dict (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hilden committed Dec 11, 2024
1 parent 3ae09d4 commit f571bcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/src/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Fixed
- Avoid constructing query params manually (:issue:`332`)
- Fix :class:`RetryingSender` to not return ``None``` in
complex retry scenarios (:issue:`333`)
- Convert :class:`Response` headers to dicts in :class:`SyncSender`
and :class:`AsyncSender` (:issue:`339`)

5.5.1 (2024-09-09)
------------------
Expand Down
4 changes: 2 additions & 2 deletions src/tekore/_sender/concrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def send(self, request: Request) -> Response:
)
return Response(
url=str(response.url),
headers=response.headers,
headers=dict(response.headers),
status_code=response.status_code,
content=try_parse_json(response),
)
Expand Down Expand Up @@ -93,7 +93,7 @@ async def send(self, request: Request) -> Response:
)
return Response(
url=str(response.url),
headers=response.headers,
headers=dict(response.headers),
status_code=response.status_code,
content=try_parse_json(response),
)
Expand Down

0 comments on commit f571bcb

Please sign in to comment.