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 New Issue
Block a user