From 5ebf12ea5b30cd9a7c5c31bff087d7703f1e149c Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Wed, 25 Nov 2009 20:01:34 +0100 Subject: css cookie prevented utf cookie setting --- html.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'html.rb') 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" -- cgit v1.2.3