Skip to content

Commit

Permalink
Added ID string "(patched by Perlover)" to "X-Powered-By" & "Server" …
Browse files Browse the repository at this point in the history
…http headers - because there are many fixes from official version
  • Loading branch information
Perlover committed Jun 17, 2012
1 parent d87679d commit 9e64183
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/Dancer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use Carp;
use Cwd 'realpath';

our $VERSION = '1.3091';
our $VERSION = '1.3092';
our $AUTHORITY = 'SUKRIA';

use Dancer::App;
Expand Down
2 changes: 1 addition & 1 deletion lib/Dancer/Renderer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ sub response_with_headers {
my $response = Dancer::SharedData->response();

$response->{headers} ||= HTTP::Headers->new;
my $powered_by = "Perl Dancer " . $Dancer::VERSION;
my $powered_by = "Perl Dancer (patched by Perlover) " . $Dancer::VERSION;
$response->header('X-Powered-By' => $powered_by);
$response->header('Server' => $powered_by);

Expand Down
4 changes: 2 additions & 2 deletions t/03_route_handler/29_forward.t
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ response_content_is [ GET => '/b' ] => 'test is 1';
my $expected_headers = [
'Content-Length' => 5,
'Content-Type' => 'text/html',
'Server' => "Perl Dancer ${Dancer::VERSION}",
'X-Powered-By' => "Perl Dancer ${Dancer::VERSION}",
'Server' => "Perl Dancer (patched by Perlover) ${Dancer::VERSION}",
'X-Powered-By' => "Perl Dancer (patched by Perlover) ${Dancer::VERSION}",
];

response_headers_are_deeply [ GET => '/bounce/' ], $expected_headers;
Expand Down
4 changes: 2 additions & 2 deletions t/22_hooks/02_before.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ response_headers_are_deeply [ GET => '/redirect_from' ],
[
'Location' => 'http://localhost/redirect_to',
'Content-Type' => 'text/xhtml',
'Server' => "Perl Dancer ${Dancer::VERSION}",
'X-Powered-By' => "Perl Dancer ${Dancer::VERSION}",
'Server' => "Perl Dancer (patched by Perlover) ${Dancer::VERSION}",
'X-Powered-By' => "Perl Dancer (patched by Perlover) ${Dancer::VERSION}",
];

is $i, 0, 'never gone to redirect_from';
Expand Down

0 comments on commit 9e64183

Please sign in to comment.