1
0

2 کامیت‌ها 734766daf3 ... 5bb7ff9aeb

نویسنده SHA1 پیام تاریخ
  GeoShaPoH 5bb7ff9aeb Merge branch 'master' of https://git.checkthis.space/geoshapoh/hokoritemp 5 ماه پیش
  GeoShaPoH e7f8bce21a Actualiza la lógica para generar la URL de descarga utilizando un argumento de línea de comandos para el protocolo HTTPS. 5 ماه پیش
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -113,7 +113,7 @@ def upload_file():
             # Crear enlace temporal (expira en 24 horas)
             # Usar el dominio configurado o el host actual
             domain = os.getenv('DOMAIN', request.host)
-            protocol = 'https' if request.is_secure else 'http'
+            protocol = 'https' if args.https else 'http'
             download_url = f"{protocol}://{domain}/download/{file_id}"
             
             return jsonify({