Skip to content

Commit

Permalink
stringify Mojo::Date objects consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 13, 2015
1 parent 84a856c commit 62d0d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.37 2015-12-12
6.37 2015-12-13
- Fixed a few reference encoding bugs in Mojo::JSON.
- Fixed a few form generation bugs in Mojo::UserAgent::Transactor.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -57,7 +57,7 @@ sub is_fresh {

my $res_headers = $c->res->headers;
my ($last, $etag) = @$options{qw(last_modified etag)};
$res_headers->last_modified(Mojo::Date->new($last)) if $last;
$res_headers->last_modified(Mojo::Date->new($last)->to_string) if $last;
$res_headers->etag($etag = qq{"$etag"}) if $etag;

# Unconditional
Expand Down

0 comments on commit 62d0d71

Please sign in to comment.