Skip to content

Commit

Permalink
there is no list context anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 22, 2016
1 parent 01a86c9 commit 7417da0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -76,8 +76,7 @@ sub cookies {

# Parse cookies
my $headers = $self->headers;
return [map { @{Mojo::Cookie::Response->parse($_)} } $headers->set_cookie]
unless @_;
return [@{Mojo::Cookie::Response->parse($headers->set_cookie)}] unless @_;

# Add cookies
$headers->add('Set-Cookie' => "$_")
Expand Down

0 comments on commit 7417da0

Please sign in to comment.