Changeset 819
- Timestamp:
- 05/28/09 16:25:36 (6 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (2 diffs)
-
lib/Perlbal/Plugin/Redirect.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGES
r813 r819 1 -- Make Redirect plugin more standards compliant (Ask BjÞrn Hansen) 2 1 3 -- Fix X-REPROXY-FILE to work with SSL connections (Greg Denton) 2 4 … … 20 22 21 23 -- change the VHost plugin to treat 'www.example.com.' and 22 'www.example.com' the same. 24 'www.example.com' the same. (Ask) 23 25 24 26 -- silence warnings when things that look like variables on comment lines -
trunk/lib/Perlbal/Plugin/Redirect.pm
r817 r819 1 2 1 package Perlbal::Plugin::Redirect; 3 4 use Perlbal;5 2 use strict; 6 3 use warnings; … … 24 21 my $res_header = Perlbal::HTTPHeaders->new_response(301); 25 22 $res_header->header('Location' => "http://$target_host$path"); 23 $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'); 26 26 $pb->write($res_header->to_string_ref()); 27 28 # FIXME: Should probably generate a more interesting body here.29 my $body = "...";30 $pb->write(\$body);31 27 32 28 return 1;
