mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
allow full mime override
This commit is contained in:
parent
15b261c861
commit
e9ab6aec77
|
@ -1463,6 +1463,8 @@ class HttpCli(object):
|
||||||
|
|
||||||
if "txt" in self.uparam:
|
if "txt" in self.uparam:
|
||||||
mime = "text/plain; charset={}".format(self.uparam["txt"] or "utf-8")
|
mime = "text/plain; charset={}".format(self.uparam["txt"] or "utf-8")
|
||||||
|
elif "mime" in self.uparam:
|
||||||
|
mime = self.uparam.get("mime")
|
||||||
else:
|
else:
|
||||||
mime = guess_mime(req_path)
|
mime = guess_mime(req_path)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue