Skip to content

Commit

Permalink
Use text/plain as a default CONTENT_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
rixed committed Aug 21, 2022
1 parent 784067e commit 70bca4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ let read_body =

let parse_args () =
let req_method = safe_getenv "REQUEST_METHOD"
and mime_type = safe_getenv "CONTENT_TYPE"
and mime_type = safe_getenv ~default:"text/plain" "CONTENT_TYPE"
and get_params = safe_getenv ~default:"" "QUERY_STRING" in
let form_params =
if List.mem req_method [ "POST" ; "PUT" ] &&
Expand Down

0 comments on commit 70bca4c

Please sign in to comment.