Skip to content

Commit 3fe2029

Browse files
committed
Merge branch 'master' into 2.5.0
2 parents 1b2bf51 + 0358a24 commit 3fe2029

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opentok/opentok.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import hashlib # _sign_string
88
import requests # create_session, archiving
99
import json # archiving
10+
import platform # user-agent
1011
from socket import inet_aton # create_session
1112
import xml.dom.minidom as xmldom # create_session
1213

@@ -280,7 +281,7 @@ def create_session(self, location=None, media_mode=MediaModes.relayed, archive_m
280281
def headers(self):
281282
"""For internal use."""
282283
return {
283-
'User-Agent': 'OpenTok-Python-SDK/' + __version__,
284+
'User-Agent': 'OpenTok-Python-SDK/' + __version__ + ' ' + platform.python_version(),
284285
'X-TB-PARTNER-AUTH': self.api_key + ':' + self.api_secret
285286
}
286287

0 commit comments

Comments
 (0)