Skip to content

Commit

Permalink
Send Referer header with balrog admin requests. (#940)
Browse files Browse the repository at this point in the history
* Send Referer header with balrog admin requests.

* Version bump balrogclient
  • Loading branch information
bhearsum committed Jun 12, 2019
1 parent eca540b commit 5d7b1eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/balrogclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def do_request(self, url, data, method):
logging.debug("Data sent: %s", sanitised_data)
else:
logging.debug("Data sent: %s", data)
headers = {"Accept-Encoding": "application/json", "Accept": "application/json", "Content-Type": "application/json"}
headers = {"Accept-Encoding": "application/json", "Accept": "application/json", "Content-Type": "application/json", "Referer": self.api_root}
before = time.time()
access_token = _get_auth0_token(self.auth0_secrets)
auth = BearerAuth(access_token)
Expand Down
2 changes: 1 addition & 1 deletion client/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="balrogclient",
version="0.3.0",
version="0.4.0",
description="Balrog Admin API Client",
author="Mozilla Release Engineers",
author_email="release+python@mozilla.com",
Expand Down

0 comments on commit 5d7b1eb

Please sign in to comment.