More Performant Cookie Regexp for Integration tests. [Ola Bini]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Michael Koziarski
2007-10-16 20:19:27 +00:00
parent cfffedb4d8
commit 534600eb7c

View File

@@ -288,7 +288,7 @@ module ActionController
end
(@headers['set-cookie'] || [] ).each do |string|
name, value = string.match(/^(.*?)=(.*?);/)[1,2]
name, value = string.match(/^([^=]*)=([^;]*);/)[1,2]
@cookies[name] = value
end