diff --git a/cohttp.opam b/cohttp.opam index ca26b399bf..3f5cd4beb6 100644 --- a/cohttp.opam +++ b/cohttp.opam @@ -20,9 +20,8 @@ build: [ ] build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]] depends: [ - "base-bytes" "jbuilder" {build & >= "1.0+beta10"} - "re" + "re" {>= "1.7.2"} "uri" {>= "1.9.0"} "fieldslib" "sexplib" diff --git a/cohttp/src/header.ml b/cohttp/src/header.ml index 956f4280c5..6db1a32c94 100644 --- a/cohttp/src/header.ml +++ b/cohttp/src/header.ml @@ -167,7 +167,7 @@ let get_connection_close headers = let media_type_re = - let re = Re_emacs.re ~case:true "[ \t]*\\([^ \t;]+\\)" in + let re = Re.Emacs.re ~case:true "[ \t]*\\([^ \t;]+\\)" in Re.(compile (seq ([start; re]))) let get_first_match _re s = diff --git a/cohttp/src/jbuild b/cohttp/src/jbuild index c88c71046e..6ac15a86a8 100644 --- a/cohttp/src/jbuild +++ b/cohttp/src/jbuild @@ -16,7 +16,7 @@ (public_name cohttp) (synopsis "Co-operative Client/Server HTTP library.") (preprocess (pps (ppx_fields_conv ppx_sexp_conv))) - (libraries (re.emacs + (libraries (re stringext uri fieldslib