Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
Send headers for POST requests
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Oct 19, 2018
1 parent 71e1681 commit adac87f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdclientapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def _send_json_request(self, method, path_query, body=None, headers=None):

else: # We are not using the Qubes securedrop-proxy
if method == "POST":
result = requests.post(self.server + path_query, data=body)
result = requests.post(self.server + path_query,
headers=headers, data=body)
elif method == "GET":
result = requests.get(self.server + path_query, headers=headers)
elif method == "DELETE":
Expand Down

0 comments on commit adac87f

Please sign in to comment.