Skip to content
Browse files

Merge pull request #1 from ctcherry/patch-1

Fix Expires header logic
  • Loading branch information...
2 parents ddcb0f1 + 5083a8b commit 181bd1522c2479f444dd17b66ce0ce837171770f @sekimura committed Oct 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/LWP/UserAgent/WithCache.pm
View
2 lib/LWP/UserAgent/WithCache.pm
@@ -48,7 +48,7 @@ sub request {
if ( defined $obj ) {
- unless (defined $obj->{expires} and $obj->{expires} <= time()) {
+ if (defined $obj->{expires} and $obj->{expires} > time()) {
return HTTP::Response->parse($obj->{as_string});
}

0 comments on commit 181bd15

Please sign in to comment.
Something went wrong with that request. Please try again.