Commit b963309f authored by Jérome Perrin's avatar Jérome Perrin

Image: always set a content type in _update_image_info

Without this, each call to getContentType modifies and reindex the object
parent a5c87f16
...@@ -128,7 +128,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -128,7 +128,7 @@ class Image(TextConvertableMixin, File, OFSImage):
width, height = header[1:] width, height = header[1:]
self.height = height self.height = height
self.width = width self.width = width
self._setContentType(content_type) self._setContentType(content_type or 'application/unknown')
def _upradeImage(self): def _upradeImage(self):
""" """
......
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