We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 944a2b3 commit 2dd7ddfCopy full SHA for 2dd7ddf
src/lib/eliom_request.client.ml
@@ -222,18 +222,7 @@ let send ?with_credentials ?(expecting_process_page = false) ?cookies_info
222
let headers =
223
if expecting_process_page
224
then
225
- let content_type =
226
- if Dom_html.onIE
227
- && not
228
- (Js.Optdef.test
229
- (Js.Unsafe.coerce Dom_html.document)##.adoptNode)
230
- then
231
- (* ie < 9 does not know xhtml+xml content type, but ie 9
232
- can use it and need it to use adoptNode *)
233
- "application/xml"
234
- else "application/xhtml+xml"
235
- in
236
- ("Accept", content_type)
+ ("Accept", "application/xhtml+xml")
237
:: ( Eliom_common.expecting_process_page_name
238
, encode_header_value ~typ:[%json: bool] true )
239
:: headers
0 commit comments