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.
This commit is contained in:
Kumi 2024-08-03 16:39:17 +02:00
parent 69e3a5a25d
commit 7df5eafe5b
Signed by: kumi
GPG key ID: ECBCC9082395383F

2
app.py
View file

@ -22,7 +22,7 @@ def proxy(url):
# Subfunction to allow streaming the data instead of # Subfunction to allow streaming the data instead of
# downloading all of it at once # downloading all of it at once
try: try:
with urlopen(unquote(url)) as data: with urlopen(unquote(jsdelivr_url)) as data:
while True: while True:
chunk = data.read(1024 * 1024) chunk = data.read(1024 * 1024)
if not chunk: if not chunk: