Skip to content

Commit

Permalink
Use Stringext.split for ocaml < 4.04
Browse files Browse the repository at this point in the history
  • Loading branch information
actionshrimp committed Sep 20, 2018
1 parent a112e50 commit 79cb44e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 79cb44e

Please sign in to comment.