Changeset 821
- Timestamp:
- 06/12/09 09:10:07 (6 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
lib/Perlbal/BackendHTTP.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r819 r821 1 -- Make Content-Range replies work (Ask BjÞrn Hansen) 2 1 3 -- Make Redirect plugin more standards compliant (Ask BjÞrn Hansen) 2 4 -
trunk/lib/Perlbal/BackendHTTP.pm
r814 r821 521 521 # also update the response code, in case of 206 partial content 522 522 my $rescode = $hd->response_code; 523 $thd->code($rescode) if $rescode == 206 || $rescode == 416; 523 if ($rescode == 206 || $rescode == 416) { 524 $thd->code($rescode); 525 $thd->header('Accept-Ranges', $hd->header('Accept-Ranges')) if $hd->header('Accept-Ranges'); 526 $thd->header('Content-Range', $hd->header('Content-Range')) if $hd->header('Content-Range'); 527 } 524 528 $thd->code(200) if $thd->response_code == 204; # upgrade HTTP No Content (204) to 200 OK. 525 529 }
