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.
2 parents 6f10ad7 + 9087c3d commit a5fff1dCopy full SHA for a5fff1d
lib/wm_util.ml
@@ -103,7 +103,7 @@ module MediaType = struct
103
| MediaType (type_', subtype') -> type_' = type_ && subtype' = subtype
104
105
let match_header provided header =
106
- let ranges = Accept.(media_ranges header |> qsort) in
+ let ranges = try Accept.(media_ranges header |> qsort) with Parsing.Parse_error -> [] in
107
let rec loop = function
108
| [] -> None
109
| r::rs -> try Some(List.find (media_match r) provided) with Not_found -> loop rs
0 commit comments