Skip to content

Commit

Permalink
Revert "Adding header values into request when values are present in …
Browse files Browse the repository at this point in the history
…req_args (#447)"

This reverts commit 4d82efc.
  • Loading branch information
Bento007 committed Sep 27, 2019
1 parent 4d82efc commit 3ac2b48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hca/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ def _request(self, req_args, url=None, stream=False, headers=None):

# TODO: (akislyuk) if using service account credentials, use manual refresh here
json_input = body if self.body_props else None
headers = headers or {}
headers.update({k: v for k, v in req_args.items() if self.parameters.get(k, {}).get('in') == 'header'})
headers = headers if headers else {}
res = session.request(self.http_method, url, params=query, json=json_input, stream=stream,
headers=headers, timeout=self.client.timeout_policy)
if res.status_code >= 400:
Expand Down

0 comments on commit 3ac2b48

Please sign in to comment.