1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Only commit the cookie jar if it hasn't been committed

We don't want to commit the cookie jar more than once because then we
will be attempting to modify a frozen hash.

Fixes Railties test failure caused by 492b134.
This commit is contained in:
eileencodes 2015-12-06 16:28:45 -05:00
parent 8350925bec
commit ff891616ac

View file

@ -413,7 +413,7 @@ module ActionDispatch # :nodoc:
def before_sending
headers.freeze
request.commit_cookie_jar!
request.commit_cookie_jar! unless committed?
end
def build_buffer(response, body)