[Jifty-commit] jifty branch, plack-rebased, updated. e42d1c730fbd4ff5136ed5c00f96ff30602f5f64

Jifty commits jifty-commit at lists.jifty.org
Sat Feb 6 10:58:42 EST 2010


The branch, plack-rebased has been updated
       via  e42d1c730fbd4ff5136ed5c00f96ff30602f5f64 (commit)
      from  c571493c6f857b613d41ef257ab6f2738cf02f9a (commit)

Summary of changes:
 lib/Jifty/Test/WWW/Mechanize.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit e42d1c730fbd4ff5136ed5c00f96ff30602f5f64
Author: Chia-liang Kao <clkao at clkao.org>
Date:   Sat Feb 6 23:53:58 2010 +0800

    override _modify_request instead of request to avoid deep recursion.

diff --git a/lib/Jifty/Test/WWW/Mechanize.pm b/lib/Jifty/Test/WWW/Mechanize.pm
index 26aa8b1..e1480a2 100644
--- a/lib/Jifty/Test/WWW/Mechanize.pm
+++ b/lib/Jifty/Test/WWW/Mechanize.pm
@@ -58,11 +58,11 @@ not set to gzip by default.
 
 =cut
 
-sub request {
+sub _modify_request {
     my ($self, $req) = @_;
     $req->header( 'Accept-Encoding', 'identity' )
         unless $req->header( 'Accept-Encoding' );
-    return $self->SUPER::request($req);
+    return $self->SUPER::_modify_request($req);
 }
 
 =head2 moniker_for ACTION, FIELD1 => VALUE1, FIELD2 => VALUE2

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list