Skip to content

Commit

Permalink
Force all nexus_headers to be lower-case
Browse files Browse the repository at this point in the history
  • Loading branch information
bwanshoom committed Mar 23, 2024
1 parent 49b16bf commit 14be0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynxm.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _make_request(self, operation, endpoint, payload=None, data=None, headers=No
timeout=30,
)
status_code = response.status_code
self.nexus_headers = {k: v for k, v in response.headers.items() if k.lower().startswith("x-")}
self.nexus_headers = {k.lower(): v for k, v in response.headers.items() if k.lower().startswith("x-")}
if status_code not in (200, 201):
if status_code == 429:
raise LimitReachedError(
Expand Down

0 comments on commit 14be0a7

Please sign in to comment.