include headers on version request

This commit is contained in:
Jay Lee
2019-06-07 16:29:28 -04:00
parent f85a072708
commit 0e2845082b

View File

@@ -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