Skip to content

Commit

Permalink
keep the cookie with the value 0 but which comes first
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jan 27, 2010
1 parent 9f269c8 commit 83c6810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Plack/Request.pm
Expand Up @@ -70,7 +70,7 @@ sub cookies {
my ($key, $value) = map URI::Escape::uri_unescape($_), split( "=", $pair, 2 );

# Take the first one like CGI.pm or rack do
$results{$key} ||= $value;
$results{$key} = $value unless exists $results{$key};
}

$self->env->{'plack.cookie.parsed'} = \%results;
Expand Down

0 comments on commit 83c6810

Please sign in to comment.