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

Commit 288e66a

Browse files
committed
Merge pull request #2 from optimizely/aharris/update-user-agent
Add User-Agent to request
2 parents f15f96f + eccfdd9 commit 288e66a

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)