Skip to content

Commit 90c6e38

Browse files
committed
Add Content-type header to RestSession
Statically specify the request content-type.
1 parent 06d3375 commit 90c6e38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ciscosparkapi/restsession.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def __init__(self, access_token, base_url=DEFAULT_API_URL, timeout=None):
5151
self._access_token = access_token
5252
self._req_session = requests.session()
5353
self._timeout = None
54-
self.update_headers({'Authorization': 'Bearer ' + access_token})
54+
self.update_headers({'Authorization': 'Bearer ' + access_token,
55+
'Content-type': 'application/json;charset=utf-8'})
5556
self.timeout = timeout
5657

5758
@property

0 commit comments

Comments
 (0)