aboutsummaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-25 20:01:34 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-25 20:01:34 +0100
commit5ebf12ea5b30cd9a7c5c31bff087d7703f1e149c (patch)
treef3794b76b37b24de081fa751a7a9c1d1ea7b008f /html.rb
parentc24a0a07cd0fd93f716d88ce783e1c3499bfe175 (diff)
css cookie prevented utf cookie setting
Diffstat (limited to 'html.rb')
-rw-r--r--html.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.rb b/html.rb
index 7347908..6164d01 100644
--- a/html.rb
+++ b/html.rb
@@ -60,7 +60,8 @@ HEAD
c = CGI::Cookie.new(key, value)
c.path = path
c.expires = expiretime
- @header["cookie"] = c
+ @header["cookie"] ||= []
+ @header["cookie"] << c
end
def << (bodycontent)
@body += bodycontent.chomp + "\n"