mirror of
https://github.com/9001/copyparty.git
synced 2026-03-21 23:53:00 +10:00
fix js mimetype with noscript webroot
This commit is contained in:
@@ -4767,7 +4767,7 @@ class HttpCli(object):
|
||||
else:
|
||||
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)
|
||||
|
||||
self.out_headers["Accept-Ranges"] = "bytes"
|
||||
|
||||
Reference in New Issue
Block a user