Skip to content

Commit

Permalink
another patch from stas
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Apr 22, 2003
1 parent b024aec commit a0d75a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CGI/Cookie.pm
Expand Up @@ -75,6 +75,9 @@ sub get_raw_cookie {
if ($r) {
$raw_cookie = $r->headers_in->{'Cookie'};
} else {
if ($MOD_PERL && !exists $ENV{REQUEST_METHOD}) {
die "Run $r->subprocess_env; before calling fetch()";
}
$raw_cookie = $ENV{HTTP_COOKIE} || $ENV{COOKIE};
}
}
Expand Down

0 comments on commit a0d75a9

Please sign in to comment.