Skip to content

Commit

Permalink
add handling=strict header
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKonar committed Oct 30, 2024
1 parent e9d83c6 commit d7e07fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/blaze_client/blaze_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self, blaze_url: str, blaze_username: str, blaze_password: str):
status_forcelist=[500, 502, 503, 504])
session = requests.Session()
session.mount('http://', HTTPAdapter(max_retries=retries))
header = {"Prefer": "handling=strict"}
session.headers.update(header)
session.auth = (blaze_username, blaze_password)
self._session = session

Expand Down

0 comments on commit d7e07fd

Please sign in to comment.