aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"