Skip to content

Commit 2dd7ddf

Browse files
hhugosmorimoto
authored andcommitted
remove logic for old IE
1 parent 944a2b3 commit 2dd7ddf

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/lib/eliom_request.client.ml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,7 @@ let send ?with_credentials ?(expecting_process_page = false) ?cookies_info
222222
let headers =
223223
if expecting_process_page
224224
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)
225+
("Accept", "application/xhtml+xml")
237226
:: ( Eliom_common.expecting_process_page_name
238227
, encode_header_value ~typ:[%json: bool] true )
239228
:: headers

0 commit comments

Comments
 (0)