summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2016-07-08 14:26:26 +0200
committerOlivier Dony <odo@openerp.com>2016-07-18 19:44:37 +0200
commit399e2bcf6dd16955e04f57f52c292f708beaa040 (patch)
tree01d2650c73a949b4d971545502c4f221c2e7069d /addons/website/static/src/xml
parent6cf275cc6b73a7d817a7db023ca3206c09527d62 (diff)
[FIX] ir.attachment: simplify xhtml-like mimetypes matching
Simplify/complements revision f6090e69e648d5891cb887e82fbfcbc868b574ac, forcing text/plain for xml-like files. Ignore forced `mimetype` when downloading attachments, if the model has its own mimetype or if we can guess it. `default_mimetype` still available as a fallback. See also the list of mimetypes supported by common browsers, e.g.: - Firefox: CParserContext::SetMimeType in: https://hg.mozilla.org/firefox/file/default/parser/htmlparser/CParserContext.cpp - Chrome: kSupportedNonImageTypes constant: https://cs.chromium.org/chromium/src/components/mime_util/mime_util.cc?sq=package:chromium&rcl=1467904650&l=89
Diffstat (limited to 'addons/website/static/src/xml')
0 files changed, 0 insertions, 0 deletions