Skip to content

Commit b0cb018

Browse files
committed
Fix content type selection for XML contents
The alternative content type were preferred over the normal content type.
1 parent 10073cc commit b0cb018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http/ocsigen_senders.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module Make_XML_Content(Xml : Xml_sigs.Iterable)
5656
| ((Some a, Some b),_,_) -> a^"/"^b = content_type
5757
| _ -> false)
5858
(Lazy.force accepted))
59-
alt
59+
(default :: alt)
6060
with Not_found -> default
6161

6262
let result_of_content ?options c =

0 commit comments

Comments
 (0)