Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit eccfdd9

Browse files
author
Andy Harris
committed
Add User-Agent to request
1 parent f15f96f commit eccfdd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimizely/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def request(self, method, url_parts, headers=None, data=None):
3232
if method in self.ALLOWED_REQUESTS:
3333
# add request token header
3434
headers = headers or {}
35-
headers.update({'Token': self.api_key})
35+
headers.update({'Token': self.api_key, 'User-Agent': 'optimizely-client-python/0.1.1'})
3636

3737
# make request and return parsed response
3838
url = urlparse.urljoin(self.api_base, '/'.join([str(url_part) for url_part in url_parts]))

0 commit comments

Comments
 (0)