Skip to content
Snippets Groups Projects
Unverified Commit f9ec21a9 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

don't send content-type

parent 00d3b4dd
No related branches found
No related tags found
No related merge requests found
......@@ -200,6 +200,7 @@ def get_file(filename):
print_log('Warning', 'Unable to update access time. Is the file in the database?')
if config["X-ACCEL-REDIRECT"]:
r = make_response()
r.headers['Content-Type'] = ''
r.headers['X-Accel-Redirect'] = os.path.join("/" + config["UPLOAD_FOLDER"], filename)
return r
# return text/plain for files with no extensions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment