From 7df5eafe5b13a670fdb9f9b6018af9b7d416afbb Mon Sep 17 00:00:00 2001 From: Kumi Date: Sat, 3 Aug 2024 16:39:17 +0200 Subject: [PATCH] fix(proxy): correct URL reference in proxy function Switched the variable from `url` to `jsdelivr_url` in the proxy function to ensure it references the correct URL. This corrects an oversight that could have resulted in incorrect data being fetched or an error due to an invalid URL. No other functionality is affected. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 5000c96..18579cc 100644 --- a/app.py +++ b/app.py @@ -22,7 +22,7 @@ def proxy(url): # Subfunction to allow streaming the data instead of # downloading all of it at once try: - with urlopen(unquote(url)) as data: + with urlopen(unquote(jsdelivr_url)) as data: while True: chunk = data.read(1024 * 1024) if not chunk: