Subject: | Net::Server::HTTP treats all Location headers as 302 |
Date: | Wed, 27 Apr 2016 16:07:09 -0500 |
To: | bug-Net-Server [...] rt.cpan.org |
From: | Felipe Gasper <felipe [...] felipegasper.com> |
The HTTP spec ascribes different meaning to “Location” depending on the supplied status code; however, Net::HTTP::Server appears to force a 302 status code whenever there is a “Location” header being sent to the client.
It looks like these lines:
elsif ($key eq 'Location') {
$headers->{'status'} = [302, 'bouncing'];
}
… just need to be taken out?
-FG