about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-03-24 08:59:39 +0100
committerfranck cuny <franck@lumberjaph.net>2010-03-24 08:59:39 +0100
commit37dd99d245db0408743f30a7ca67b40242b147b3 (patch)
tree1eb39ed9960fa65cc3c89b18879323254ea417ad
parentfix (diff)
downloadplack-middleware-etag-37dd99d245db0408743f30a7ca67b40242b147b3.tar.gz
cealn POD, remove warn from test
-rw-r--r--lib/Plack/Middleware/ETag.pm2
-rw-r--r--t/01_basic.t1
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Plack/Middleware/ETag.pm b/lib/Plack/Middleware/ETag.pm
index ad1848f..90ae1e1 100644
--- a/lib/Plack/Middleware/ETag.pm
+++ b/lib/Plack/Middleware/ETag.pm
@@ -76,7 +76,7 @@ Plack::Middleware::ETag adds automatically an ETag header. You may want to use i
 
   my $app = builder {
     enable "Plack::Middleware::ConditionalGET";
-    enable "Plack::Middleware::ETag", path => "", file_etag => "inode";
+    enable "Plack::Middleware::ETag", file_etag => "inode";
     sub {['200', ['Content-Type' => 'text/html'}, ['hello world']]};
   };
 
diff --git a/t/01_basic.t b/t/01_basic.t
index 62e1e6e..60cdb66 100644
--- a/t/01_basic.t
+++ b/t/01_basic.t
@@ -83,7 +83,6 @@ test_psgi
         my $req = GET "http://localhost/";
         my $res = $cb->($req);
         ok $res->header('ETag');
-	warn $res->header('ETag');
 	is $res->code, 200;
 	ok $res->content;
     }