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 32d6574 commit cf532a3Copy full SHA for cf532a3
cohttp.opam
@@ -34,7 +34,7 @@ bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
34
depends: [
35
"ocaml" {>= "4.04.1"}
36
"dune" {build & >= "1.1.0"}
37
- "re" {>= "1.7.2"}
+ "re" {>= "1.9.0"}
38
"uri" {>= "2.0.0"}
39
"fieldslib"
40
"sexplib0"
cohttp/src/header.ml
@@ -173,7 +173,7 @@ let media_type_re =
173
let get_first_match _re s =
174
try
175
let subs = Re.exec ~pos:0 media_type_re s in
176
- let (start, stop) = Re.get_ofs subs 1 in
+ let (start, stop) = Re.Group.offset subs 1 in
177
Some (String.sub s start (stop - start))
178
with Not_found -> None
179
0 commit comments