Skip to content

Commit

Permalink
Revert Fix compilation warning (7672310)
Browse files Browse the repository at this point in the history
Turned out String.lowercase_ascii is not supported in OCaml 4.02 so we
can't use it to fix the warning yet.
  • Loading branch information
alavrik committed Apr 18, 2018
1 parent ecdbc46 commit 116e8da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/piqi_http.ml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ let rec parse_headers accu = lexer
| token ->
let field_name = Ulexing.latin1_lexeme lexbuf in
let field_value = parse_message_header_tail lexbuf in
let lowercase_name = String.lowercase_ascii field_name in
(* NOTE: we'll have to live with the compilation warning about
* String.lowercase being deprecated: can't use String.lowercase_ascii
* because it is not supported in OCaml 4.02, it was added in 4.03 *)
let lowercase_name = String.lowercase field_name in
parse_headers ((lowercase_name, field_value) :: accu) lexbuf

| crlf ->
Expand Down

0 comments on commit 116e8da

Please sign in to comment.