allow full mime override

This commit is contained in:
ed 2021-11-06 00:50:20 +01:00
parent 15b261c861
commit e9ab6aec77

View file

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