Revert "debug /s/ replacement"

This reverts commit 6ff73339af.
master
Aevann 2024-10-27 23:29:16 +03:00
parent 8ed8aa5f99
commit cca6aabf94
1 changed files with 2 additions and 1 deletions

View File

@ -837,7 +837,8 @@ def normalize_url(url):
return url.rstrip('=') return url.rstrip('=')
def normalize_url_gevent(url): def normalize_url_gevent(url):
req = requests.get(url, headers=HEADERS, timeout=5, proxies=proxies) try: 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):