Skip to content

Commit

Permalink
adding modification of base header.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Sep 26, 2023
1 parent d0e7f02 commit e7f8a18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bloqade/submission/quera_api_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def _result_as_json(result: requests.Response) -> Dict:
def _generate_headers(self, base: Optional[dict] = None) -> Dict:
if base is None:
header = {"Content-Type": "application/json"}
else:
header = dict(base)
header["Content-Type"] = "application/json"

if self.hostname is not None:
header["Host"] = self.hostname
Expand Down

0 comments on commit e7f8a18

Please sign in to comment.