projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e7261
)
Don't bother copying X-Cake to Cookie if it's empty.
author
Mike Taylor
<mike@indexdata.com>
Wed, 26 Jun 2013 13:03:54 +0000
(15:03 +0200)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 26 Jun 2013 13:03:54 +0000
(15:03 +0200)
etc/mod_perl/MyApache2/CopyCookie.pm
patch
|
blob
|
history
diff --git
a/etc/mod_perl/MyApache2/CopyCookie.pm
b/etc/mod_perl/MyApache2/CopyCookie.pm
index
86e9b69
..
10b1b10
100644
(file)
--- a/
etc/mod_perl/MyApache2/CopyCookie.pm
+++ b/
etc/mod_perl/MyApache2/CopyCookie.pm
@@
-26,8
+26,10
@@
sub handler {
$cookie = $hi->get('Cookie');
if (!defined $cookie || $cookie eq "") {
$cookie = $hi->get('X-Cake');
- warn "copying X-Cake '$cookie' to Cookie";
- $hi->set('Cookie', $cookie);
+ if (defined $cookie && $cookie ne "") {
+ warn "copying X-Cake '$cookie' to Cookie";
+ $hi->set('Cookie', $cookie);
+ }
}
while ($f->read(my $buffer, BUFF_LEN)) {