Skip to content

Commit c78f9d8

Browse files
committed
refer to selenium implementation a bit more
1 parent 3cf12d5 commit c78f9d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

appium/webdriver/appium_connection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
class AppiumConnection(RemoteConnection):
3131
_proxy_url: Optional[str]
3232

33+
user_agent = f'{PREFIX_HEADER}{library_version()} ({RemoteConnection.user_agent})'
34+
3335
def __init__(
3436
self,
3537
remote_server_addr: str,
@@ -72,7 +74,7 @@ def get_remote_connection_headers(cls, parsed_url: 'ParseResult', keep_alive: bo
7274
"""Override get_remote_connection_headers in RemoteConnection"""
7375
headers = RemoteConnection.get_remote_connection_headers(parsed_url, keep_alive=keep_alive)
7476
# e.g. appium/0.49 (selenium/3.141.0 (python linux))
75-
headers['User-Agent'] = f'{PREFIX_HEADER}{library_version()} ({headers["User-Agent"]})'
77+
# headers['User-Agent'] = f'{PREFIX_HEADER}{library_version()} ({headers["User-Agent"]})'
7678
if parsed_url.path.endswith('/session'):
7779
# https://github.com/appium/appium-base-driver/pull/400
7880
headers['X-Idempotency-Key'] = str(uuid.uuid4())

0 commit comments

Comments
 (0)