Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Expires header logic

  • Loading branch information...
commit 5083a8bc499668015e00d16c065c4e7d7a36cb83 1 parent ddcb0f1
@ctcherry ctcherry authored
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});
}
Please sign in to comment.
Something went wrong with that request. Please try again.