Skip to content

Commit

Permalink
Reorder headers (#161)
Browse files Browse the repository at this point in the history
* Enhance client arguments and description

* remove unused import

* Reorder request header priority
  • Loading branch information
ludeeus authored Dec 4, 2022
1 parent dc3c698 commit 808fa62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aiogithubapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ async def async_call_api(
"headers": {
**(headers or {}),
**self._base_request_data.headers,
**(headers or {}),
**kwargs.get("headers", {}),
},
}

print(request_arguments["headers"])

if etag := kwargs.get(GitHubRequestKwarg.ETAG):
request_arguments["headers"][aiohttp.hdrs.IF_NONE_MATCH] = etag

Expand Down

0 comments on commit 808fa62

Please sign in to comment.