forked from MarseyWorld/MarseyWorld
debug /s/ replacement
parent
0959711bfd
commit
6ff73339af
|
@ -837,8 +837,7 @@ def normalize_url(url):
|
||||||
return url.rstrip('=')
|
return url.rstrip('=')
|
||||||
|
|
||||||
def normalize_url_gevent(url):
|
def normalize_url_gevent(url):
|
||||||
try: req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies)
|
req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies)
|
||||||
except: return url
|
|
||||||
return normalize_url(req.url)
|
return normalize_url(req.url)
|
||||||
|
|
||||||
def validate_css(css):
|
def validate_css(css):
|
||||||
|
|
Loading…
Reference in New Issue