CISCai commited on
Commit
1717b3c
1 Parent(s): b71fd8d

Force HTTPS download

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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
  {