diff --git a/lib/em-http-server/response.rb b/lib/em-http-server/response.rb index 1222adb..272ca25 100644 --- a/lib/em-http-server/response.rb +++ b/lib/em-http-server/response.rb @@ -83,7 +83,7 @@ def set_cookie *ck h = (@headers["Set-cookie"] ||= []) if ck.length > 0 h.clear - add_set_cookie *ck + add_set_cookie(*ck) else h end