mirror of
https://github.com/9001/copyparty.git
synced 2026-10-05 22:04:38 +01:00
fix js mimetype with noscript webroot
This commit is contained in:
@@ -4767,7 +4767,7 @@ class HttpCli(object):
|
|||||||
else:
|
else:
|
||||||
mime = guess_mime(cdis)
|
mime = guess_mime(cdis)
|
||||||
|
|
||||||
if mime not in SAFE_MIMES and "nohtml" in self.vn.flags:
|
if mime not in SAFE_MIMES and "nohtml" in self.vn.flags and oh_k != "oh_g":
|
||||||
mime = safe_mime(mime)
|
mime = safe_mime(mime)
|
||||||
|
|
||||||
self.out_headers["Accept-Ranges"] = "bytes"
|
self.out_headers["Accept-Ranges"] = "bytes"
|
||||||
|
|||||||
Reference in New Issue
Block a user