Skip to content

Commit 19f31f9

Browse files
authored
Merge pull request #58 from browserstack/Add_User_Agent
Add User Agent
2 parents 35afb53 + b271687 commit 19f31f9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

browserstack/local_binary.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def fetch_source_url(self):
4444
url = "https://local.browserstack.com/binary/api/v1/endpoint"
4545
headers = {
4646
"Content-Type": "application/json",
47-
"Accept": "application/json"
47+
"Accept": "application/json",
48+
"User-Agent": '/'.join(('browserstack-local-python', LocalBinary._version))
4849
}
4950
data = {"auth_token": self.key}
5051

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
setup(
66
name = 'browserstack-local',
77
packages = ['browserstack'],
8-
version = '1.2.11',
8+
version = '1.2.12',
99
description = 'Python bindings for Browserstack Local',
1010
long_description=open('README.md').read(),
1111
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)