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:
parent
69e3a5a25d
commit
7df5eafe5b
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue