Changeset 820

Show
Ignore:
Timestamp:
05/29/09 09:42:24 (6 months ago)
Author:
ask
Message:

More Redirect plugin bugfixing (well, a workaround at best...)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Perlbal/Plugin/Redirect.pm

    r819 r820  
    2222        $res_header->header('Location' => "http://$target_host$path"); 
    2323        $res_header->header('Content-Length' => 0); 
    24         # really should only do the keep-alive for 1.1, but that's a bigger issue 
    25         $res_header->header('Connection' => 'keep-alive'); 
     24        # For some reason a follow-up request gets a "400 Bad request" response, 
     25        # so until someone has time to figure out why, just punt and disable  
     26        # keep-alives after this request. 
     27        $res_header->header('Connection' => 'close'); 
    2628        $pb->write($res_header->to_string_ref()); 
    2729