fix user agent

This commit is contained in:
Jay Lee
2020-02-13 15:31:25 -05:00
parent 7725d32788
commit 3c98fc460a

View File

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