Subject: | HEAD request always fails if 3xx response contains non-zero Content-Length |
If the server returns 302 with a non-zero Content-Length, PoCo::Client::HTTP::Request::add_eof always overwrite the return code with "400 incomplete response." Looks like it should special case HEAD command to ignore $self->[REQ_RESPONSE]->content_length.
To repro: do
$kernel->post('ua', 'request', 'response',
HTTP::Request->new('HEAD', 'http://google.com'));
and stop in PoCo::Client::HTTP::Request::add_eof line 209.
I tried 0.7002 and 0.72.
Thanks.