Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[doc] stdlib/resource: document hack about content-type

  • Loading branch information...
commit cdfb9167f7bf90aaadac9d1594cc6831985ac9e9 1 parent 705bc90
François-Régis Sinot authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 stdlib/core/web/resource/resource_private.opa
View
8 stdlib/core/web/resource/resource_private.opa
@@ -693,8 +693,14 @@ default_customizers = [customizer_for_icon,customizer_for_google_frame,required_
head = head_custom
//Additional IE-specific fix -- note that the mime type can be ignored if the resource uses [override_mime_type]
mime_type = match user_compat.renderer with
- | { Trident=_ }
+ /* hack for IE (considers application/xhtml+xml as files to save) */
+ | { Trident=_ } -> "text/html"
+ /* work-around for Chrome & Safari's bug http://code.google.com/p/chromium/issues/detail?id=45440
+ if we serve application/xhtml+xml, we loose the password-saving mechanism for login forms
+ but unfortunately, with text/html, we loose some features (e.g. ability to have SVG)
+ TODO: remove next line when Chrome bug 45440 is fixed */
| { Webkit=_; variant=_ } -> "text/html"
+ /* application/xhtml+xml is the right content-type by default */
| _ -> "application/xhtml+xml"
end }
Please sign in to comment.
Something went wrong with that request. Please try again.