From f8965c5b545887a19a1ce2cc7d3faeedfb36d9d2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 18 Dec 2023 22:17:59 +0200 Subject: [PATCH] same as last commit --- files/helpers/sanitize.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index ececf1e30b..c4e586871a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -808,9 +808,10 @@ def normalize_url(url): return url.rstrip('=') def normalize_url_gevent(url): - url = requests.get(url, headers=HEADERS, timeout=2).url - print(url, flush=True) - return normalize_url(url) + x = requests.get(url, headers=HEADERS, timeout=2) + print(x, flush=True) + print(x.url, flush=True) + return normalize_url(x.url) def validate_css(css): if '@import' in css: