Browse Source

reformat

pull/39/head
Dashie der otter 5 months ago
parent
commit
7ae9f6b2b4
Signed by: Dashie <dashie@sigpipe.me> GPG Key ID: C2D57B325840B755
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app.py

+ 1
- 1
app.py View File

@@ -230,7 +230,7 @@ def create_app(config_filename="config.py", app_name=None, register_blueprints=T
resp = Response("")
resp.headers["Content-Disposition"] = f"attachment; filename={stuff}"
resp.headers["X-Accel-Redirect"] = f"/_protected/media/{thing}/{stuff}"
resp.headers['Content-Type'] = '' # empty it so Nginx will guess it correctly
resp.headers["Content-Type"] = "" # empty it so Nginx will guess it correctly
return resp

@app.errorhandler(404)

Loading…
Cancel
Save