Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix Expires header logic

  • Loading branch information...
commit 5083a8bc499668015e00d16c065c4e7d7a36cb83 1 parent ddcb0f1
Chris Cherry ctcherry authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/LWP/UserAgent/WithCache.pm
2  lib/LWP/UserAgent/WithCache.pm
@@ -48,7 +48,7 @@ sub request {
48 48
49 49 if ( defined $obj ) {
50 50
51   - unless (defined $obj->{expires} and $obj->{expires} <= time()) {
  51 + if (defined $obj->{expires} and $obj->{expires} > time()) {
52 52 return HTTP::Response->parse($obj->{as_string});
53 53 }
54 54

0 comments on commit 5083a8b

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