mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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:
|
||||
mime = "text/plain; charset={}".format(self.uparam["txt"] or "utf-8")
|
||||
elif "mime" in self.uparam:
|
||||
mime = self.uparam.get("mime")
|
||||
else:
|
||||
mime = guess_mime(req_path)
|
||||
|
||||
|
|
Loading…
Reference in a new issue