mirror of
https://github.com/9001/copyparty.git
synced 2026-04-12 15:22:32 -06:00
fix js mimetype with noscript webroot
This commit is contained in:
parent
6eb4f0ad9c
commit
eb028c92f8
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue