Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
thomjass authored Jul 2, 2020
1 parent b2722a9 commit bcbd141
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zoomus/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def put_request(self, endpoint, params=None, data=None, headers=None, cookies=No
if data and not is_str_type(data):
data = json.dumps(data)
if headers is None and self.config.get("version") == API_VERSION_2:
headers = {"Authorization": "Bearer {}".format(self.config.get("token"))}
headers = {
"Authorization": "Bearer {}".format(self.config.get("token")),
"Content-Type": "application/json"
}
return requests.put(
self.url_for(endpoint),
params=params,
Expand Down

0 comments on commit bcbd141

Please sign in to comment.