Skip to content

Commit

Permalink
Merge pull request #851 from rudybrian/add_chunked_http_post_support
Browse files Browse the repository at this point in the history
Suppress warnings when using lowercase transfer-encoding header
  • Loading branch information
hplato committed Sep 18, 2022
2 parents 61ec940 + 12f7647 commit 9eafa47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http_server.pl
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ sub http_process_request {
#
} elsif ($Http{'Content-Type'} =~ m%^application/(json|x-www-form-urlencoded)%i && $HTTP_BODY =~ /^\{/) {
print "[http_server.pl]: posting json data\n" if $main::Debug{http};
} elsif ($Http{'Transfer-Encoding'} && $HTTP_BODY =~ /^\{/) {
} elsif (($Http{'Transfer-Encoding'} && $HTTP_BODY =~ /^\{/) || ($Http{'transfer-encoding'} && $HTTP_BODY =~ /^\{/)) {
print "[http_server.pl]: posting chunked json data\n" if $main::Debug{http};
} else {
&main::print_log("[http_server.pl]: Warning, invalid argument string detected ($buf) ($Http{'Content-Type'}) ($HTTP_BODY)\n");
Expand Down

0 comments on commit 9eafa47

Please sign in to comment.