Skip to content

Commit

Permalink
content -> content-type.
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmithr committed Sep 23, 2015
1 parent 58d80fd commit b4951d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion async/cohttp_async.ml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ module Client = struct
call ?interrupt ?headers ~chunked ?body `POST uri

let post_form ?interrupt ?headers ~params uri =
let headers = Cohttp.Header.add_opt_unless_exists headers "content" "application/x-www-form-urlencoded" in
let headers = Cohttp.Header.add_opt_unless_exists headers
"content-type" "application/x-www-form-urlencoded" in
let body = Body.of_string (Uri.encoded_of_query params) in
post ?interrupt ~headers ~chunked:false ~body uri

Expand Down

0 comments on commit b4951d4

Please sign in to comment.