Skip to content

Commit

Permalink
Default cookie to /
Browse files Browse the repository at this point in the history
  • Loading branch information
ambs committed Sep 8, 2013
1 parent 7981d18 commit 22d3cbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dancer2/Core/Cookie.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ sub to_header {
my $no_httponly = defined( $self->http_only ) && $self->http_only == 0;

my @headers = $self->name . '=' . $value;
push @headers, "path=" . $self->path if $self->path;
push @headers, "path=" . $self->path || '/';
push @headers, "expires=" . $self->expires if $self->expires;
push @headers, "domain=" . $self->domain if $self->domain;
push @headers, "domain=" . $self->domain if $self->domain;
push @headers, "Secure" if $self->secure;
push @headers, 'HttpOnly' unless $no_httponly;

Expand Down

0 comments on commit 22d3cbe

Please sign in to comment.