From 3c98fc460aebbb3b8a43723a3437f1b10c8bfd3b Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 13 Feb 2020 15:31:25 -0500 Subject: [PATCH] fix user agent --- src/gam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 8ced11a5..2b7af959 100755 --- a/src/gam.py +++ b/src/gam.py @@ -7331,7 +7331,7 @@ def shorten_url(long_url): simplehttp = transport.create_http(timeout=10) url_shortnr = 'https://gam-shortn.appspot.com/create' headers = {'Content-Type': 'application/json', - 'User-Agent': 'GAM_INFO'} + 'User-Agent': GAM_INFO} try: resp, content = simplehttp.request(url_shortnr, 'POST', f'{{"long_url": "{long_url}"}}', headers=headers)