mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user