Subject: | [PATCH] HTTP response-line parsing tweak |
Hi Brad,
There's a minor bug in parsing HTTP headers -- Perlbal forces HTTP
response lines to have a status message. HTML::Mason::CGIHandler (which
RT uses) sends "HTTP/1.1 302" for redirects, and Perlbal complains. The
bug is at line 109 of Perlbal::HTTPHeaders:
$self->{responseLine} =~ m!^HTTP\/(\d+)\.(\d+)\s+(\d+)\s+(.*)$!;
The final \s+ should just be \s*:
$self->{responseLine} =~ m!^HTTP\/(\d+)\.(\d+)\s+(\d+)\s*(.*)$!;
Thanks!
Shawn M Moore
for Best Practical