-
- Downloads
[FIX] tools: fix guess_mimetype coming from libmagic
Since 5a9e1af6 our guess_mimetype accepted a `default` named argument. This commit fix the use of library used instead of our implementation, so we don't get an error from an unexpected argument when having python-magic installed on a given server. Since python-magic functions always return a default mimetype: - empty content: application/x-empty - text content: text/plain - binary content: application/octet-stream the guess_mimetype default argument is not used with python-magic implementations. closes #13343 opw-687354
Please register or sign in to comment