From e7f8a1869bfa4eb736ec7868f18665552cd10959 Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Tue, 26 Sep 2023 13:20:58 -0400 Subject: [PATCH] adding modification of base header. --- src/bloqade/submission/quera_api_client/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bloqade/submission/quera_api_client/api.py b/src/bloqade/submission/quera_api_client/api.py index 825f4aacc..df9b15363 100644 --- a/src/bloqade/submission/quera_api_client/api.py +++ b/src/bloqade/submission/quera_api_client/api.py @@ -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