Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
871a1387
Commit
871a1387
authored
Dec 06, 2022
by
fred
Browse files
let nginx determine content type
parent
198cebd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb/views.py
View file @
871a1387
...
...
@@ -1124,7 +1124,7 @@ chat = cache_control(max_age=15)(Chat.as_view())
def
media_hosting
(
request
,
location
,
*
args
,
**
kwargs
):
local_path
=
default_storage
.
path
(
location
)
response
=
HttpResponse
()
response
=
HttpResponse
(
content_type
=
''
)
if
os
.
path
.
exists
(
local_path
):
response
[
'X-Accel-Redirect'
]
=
settings
.
OFFSITE_MEDIA_SOUNDS
[
0
]
+
location
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment