Subject: | Content-Type missing in POST request |
It seems that the "Content-Type" header is not send in POST requests. This prevents a POST request to be parsed by most servers.
I've enclosed a patch that adds this header in case of a POST. The code could be simplified.
The patch also fix the warning due to a duplicate line as exposed in previous bug report.
I hope this helps
70c70
< my $self=shift;
---
> my $self = shift;
72,73c72
< my $method = uc($method);
< $self->{method} = $method;
---
> $self->{method} = uc $method;
196a196,199
> }
>
> if ($method eq 'POST') {
> http_write(*FH, "Content-Type: application/x-www-form-urlencoded$CRLF");