mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-05 21:31:35 +00:00
include headers on version request
This commit is contained in:
@@ -847,7 +847,8 @@ def _getServerTLSUsed(location):
|
|||||||
_, netloc, _, _, _, _ = urlparse(url)
|
_, netloc, _, _, _, _ = urlparse(url)
|
||||||
conn = 'https:%s' % netloc
|
conn = 'https:%s' % netloc
|
||||||
httpc = _createHttpObj()
|
httpc = _createHttpObj()
|
||||||
httpc.request(url)
|
headers = {'user-agent': GAM_INFO}
|
||||||
|
httpc.request(url, headers=headers)
|
||||||
cipher_name, tls_ver, _ = httpc.connections[conn].sock.cipher()
|
cipher_name, tls_ver, _ = httpc.connections[conn].sock.cipher()
|
||||||
return tls_ver, cipher_name
|
return tls_ver, cipher_name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user