diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-20 16:44:48 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-20 16:44:48 +0000 |
commit | 694aafaa9d06cd6c49698cc73f6dd105400313d8 (patch) | |
tree | df5dfe1e034f48d82f612e2490535f1ce673b859 /railties/lib | |
parent | ce2386280086e8ebb978b16025a778980953c6ea (diff) | |
download | rails-694aafaa9d06cd6c49698cc73f6dd105400313d8.tar.gz rails-694aafaa9d06cd6c49698cc73f6dd105400313d8.tar.bz2 rails-694aafaa9d06cd6c49698cc73f6dd105400313d8.zip |
Fixed webrick_server cookie handling to allow multiple cookes to be set at once #800, #813 [dave@cherryville.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@937 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/webrick_server.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb index 49244837ef..cc45867128 100644 --- a/railties/lib/webrick_server.rb +++ b/railties/lib/webrick_server.rb @@ -94,6 +94,7 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet res.status = $1.to_i header.delete('status') end + res.cookies.concat header.delete('set-cookie') header.each { |key, val| res[key] = val.join(", ") } res.body = body |