Commit e8ad8298 authored by Arnaud Fontaine's avatar Arnaud Fontaine

wkhtmltopdf: convertFile() is not supposed to work with mimetypes, only format.

parent a5157949
...@@ -123,8 +123,8 @@ class Manager(object): ...@@ -123,8 +123,8 @@ class Manager(object):
# use the conversion_kw in a possible interoperable way between all # use the conversion_kw in a possible interoperable way between all
# "html to pdf" handlers. # "html to pdf" handlers.
if (conversion_kw and if (conversion_kw and
source_format in ("html", "text/html") and source_format == "html" and
destination_format in ("pdf", "application/pdf")): destination_format == "pdf"):
handler_class = WkhtmltopdfHandler handler_class = WkhtmltopdfHandler
else: else:
handler_class = getHandlerClass(source_format, handler_class = getHandlerClass(source_format,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment