Show
Ignore:
Timestamp:
11/26/08 22:10:50 (16 months ago)
Author:
ask
Message:

Only fix the host header when there is one

Files:
1 modified

Legend:

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

    r800 r801  
    8686 
    8787    # Browsers and the Apache API considers 'www.example.com.' == 'www.example.com' 
    88     $vhost =~ s/\.$//; 
     88    $vhost and $vhost =~ s/\.$//; 
    8989 
    9090    my $uri = $req->request_uri;