Skip to content

Commit

Permalink
Merge pull request #83 from actionshrimp/string-split-fix
Browse files Browse the repository at this point in the history
String split fix for ocaml < 4.04
  • Loading branch information
rgrinberg authored Oct 12, 2018
2 parents dbc92e8 + 79cb44e commit 3309c44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions opium.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ depends: [
"ppx_sexp_conv" {>= "v0.9.0"}
"re" {>= "1.3.0"}
"magic-mime"
"stringext"
"alcotest" {test}
"cow" {test & >= "0.10.0"}
]
Expand Down
3 changes: 2 additions & 1 deletion opium/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
cmdliner
cohttp-lwt-unix
magic-mime
logs))))
logs
stringext))))
2 changes: 1 addition & 1 deletion opium/static_serve.ml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let public_serve t ~requested ~request_if_none_match ?etag_of_fname ?headers ()
match request_if_none_match, etag_quoted with
| Some request_etags, Some etag_quoted ->
request_etags
|> String.split_on_char ','
|> Stringext.split ~on:','
|> List.exists ~f:(fun request_etag ->
String.trim request_etag = etag_quoted
)
Expand Down

0 comments on commit 3309c44

Please sign in to comment.