mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
fix user agent
This commit is contained in:
@@ -7331,7 +7331,7 @@ def shorten_url(long_url):
|
|||||||
simplehttp = transport.create_http(timeout=10)
|
simplehttp = transport.create_http(timeout=10)
|
||||||
url_shortnr = 'https://gam-shortn.appspot.com/create'
|
url_shortnr = 'https://gam-shortn.appspot.com/create'
|
||||||
headers = {'Content-Type': 'application/json',
|
headers = {'Content-Type': 'application/json',
|
||||||
'User-Agent': 'GAM_INFO'}
|
'User-Agent': GAM_INFO}
|
||||||
try:
|
try:
|
||||||
resp, content = simplehttp.request(url_shortnr, 'POST',
|
resp, content = simplehttp.request(url_shortnr, 'POST',
|
||||||
f'{{"long_url": "{long_url}"}}', headers=headers)
|
f'{{"long_url": "{long_url}"}}', headers=headers)
|
||||||
|
|||||||
Reference in New Issue
Block a user