Skip to content

Commit cf532a3

Browse files
committed
fix warning with re.1.9.0
1 parent 32d6574 commit cf532a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cohttp.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
3434
depends: [
3535
"ocaml" {>= "4.04.1"}
3636
"dune" {build & >= "1.1.0"}
37-
"re" {>= "1.7.2"}
37+
"re" {>= "1.9.0"}
3838
"uri" {>= "2.0.0"}
3939
"fieldslib"
4040
"sexplib0"

cohttp/src/header.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ let media_type_re =
173173
let get_first_match _re s =
174174
try
175175
let subs = Re.exec ~pos:0 media_type_re s in
176-
let (start, stop) = Re.get_ofs subs 1 in
176+
let (start, stop) = Re.Group.offset subs 1 in
177177
Some (String.sub s start (stop - start))
178178
with Not_found -> None
179179

0 commit comments

Comments
 (0)