Skip to content

Commit

Permalink
removed Mojolicious::Plugin::PoweredBy
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 7, 2013
1 parent 501c637 commit 82af89a
Show file tree
Hide file tree
Showing 16 changed files with 226 additions and 571 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
4.0 2013-05-07
- Added is_empty method to Mojo::Transaction::HTTP.
- Added close_gracefully method to Mojo::IOLoop::Stream.
- Removed Mojolicious::Plugin::PoweredBy.
- Removed data attribute from Mojo::URL.
- Removed deprecated end method from Mojo::IOLoop::Delay.
- Removed deprecated build_form_tx, build_json_tx, post_form and post_json
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -80,7 +80,7 @@ sub new {
if -w $home->rel_file('log');

$self->plugin($_) for qw(HeaderCondition DefaultHelpers TagHelpers);
$self->plugin($_) for qw(EPLRenderer EPRenderer RequestTimer PoweredBy);
$self->plugin($_) for qw(EPLRenderer EPRenderer RequestTimer);

# Exception handling should be first in chain
$self->hook(around_dispatch => \&_exception);
Expand Down
61 changes: 0 additions & 61 deletions lib/Mojolicious/Plugin/PoweredBy.pm

This file was deleted.

4 changes: 0 additions & 4 deletions lib/Mojolicious/Plugins.pm
Expand Up @@ -120,10 +120,6 @@ Mount whole L<Mojolicious> applications.
Renderer for turning POD into HTML and documentation browser for
L<Mojolicious::Guides>.
=item L<Mojolicious::Plugin::PoweredBy>
Add an C<X-Powered-By> header to outgoing responses, loaded automatically.
=item L<Mojolicious::Plugin::RequestTimer>
Log timing information, loaded automatically.
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -387,7 +387,7 @@ Test::Mojo - Testing Mojo!
# JSON
$t->post_ok('/search.json' => form => {q => 'Perl'})
->status_is(200)
->header_is('X-Powered-By' => 'Mojolicious (Perl)')
->header_is('Server' => 'Mojolicious (Perl)')
->header_isnt('X-Bender' => 'Bite my shiny metal ass!')
->json_is('/results/4/title' => 'Perl rocks!');
Expand Down
3 changes: 1 addition & 2 deletions t/mojo/response.t
Expand Up @@ -298,8 +298,7 @@ $res = Mojo::Message::Response->new;
$res->parse("HTTP/1.1 413 Request Entity Too Large\x0d\x0a"
. "Connection: Close\x0d\x0a"
. "Date: Tue, 09 Feb 2010 16:34:51 GMT\x0d\x0a"
. "Server: Mojolicious (Perl)\x0d\x0a"
. "X-Powered-By: Mojolicious (Perl)\x0d\x0a\x0d\x0a");
. "Server: Mojolicious (Perl)\x0d\x0a\x0d\x0a");
ok !$res->is_finished, 'response is not finished';
is $res->code, 413, 'right status';
is $res->message, 'Request Entity Too Large', 'right message';
Expand Down

0 comments on commit 82af89a

Please sign in to comment.