Skip Menu |

This queue is for tickets about the Perlbal CPAN distribution.

Report information
The Basics
Id: 36689
Status: resolved
Priority: 0/
Queue: Perlbal

People
Owner: Nobody in particular
Requestors: rt.cpan [...] sartak.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.70
Fixed in: (no value)



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
hachi fixed this a while back.