Spaces:
Running
Running
Force HTTPS download
Browse files
app.py
CHANGED
@@ -474,6 +474,9 @@ with gr.Blocks(
|
|
474 |
m.append([k, *human_readable_metadata(v[0], v[1])])
|
475 |
|
476 |
link = str(request.request.url_for('download', repo_file = meta.var['repo_file']).include_query_params(branch = meta.var['branch']))
|
|
|
|
|
|
|
477 |
if meta.rem or meta.add:
|
478 |
link += '&' + urlencode(
|
479 |
{
|
|
|
474 |
m.append([k, *human_readable_metadata(v[0], v[1])])
|
475 |
|
476 |
link = str(request.request.url_for('download', repo_file = meta.var['repo_file']).include_query_params(branch = meta.var['branch']))
|
477 |
+
if link.startswith('http:'):
|
478 |
+
link = 'https' + link[4:]
|
479 |
+
|
480 |
if meta.rem or meta.add:
|
481 |
link += '&' + urlencode(
|
482 |
{
|