Skip to content

🛡️ Warracker is an open source, self-hostable warranty tracker to monitor expirations, store receipts, files. You own the data, your rules!

Fix file downloads returning empty (disable USE_X_SENDFILE)

Omega (QA)1a9619d8a6fa
diff --git a/backend/config.py b/backend/config.py
index 226e095..5f83e20 100644
--- a/backend/config.py
+++ b/backend/config.py
@@ -79,7 +79,7 @@ class Config:
# Request Handling Optimization
MAX_COOKIE_SIZE = 4093 # Slightly under 4KB limit
- USE_X_SENDFILE = True # Let nginx handle file serving
+ USE_X_SENDFILE = False # Serve files directly via Flask; nginx is not configured to handle X-Sendfile
@staticmethod
def init_app(app):