From 0e2845082b286152bf40b1360d4f188781e6d469 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 7 Jun 2019 16:29:28 -0400 Subject: [PATCH] include headers on version request --- src/gam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 18f92606..dfbaf1a8 100755 --- a/src/gam.py +++ b/src/gam.py @@ -847,7 +847,8 @@ def _getServerTLSUsed(location): _, netloc, _, _, _, _ = urlparse(url) conn = 'https:%s' % netloc httpc = _createHttpObj() - httpc.request(url) + headers = {'user-agent': GAM_INFO} + httpc.request(url, headers=headers) cipher_name, tls_ver, _ = httpc.connections[conn].sock.cipher() return tls_ver, cipher_name