fix js mimetype with noscript webroot

This commit is contained in:
ed
2026-03-17 23:51:25 +00:00
parent 6eb4f0ad9c
commit eb028c92f8

View File

@@ -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"