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:
parent
8350925bec
commit
ff891616ac
1 changed files with 1 additions and 1 deletions
|
@ -413,7 +413,7 @@ module ActionDispatch # :nodoc:
|
||||||
|
|
||||||
def before_sending
|
def before_sending
|
||||||
headers.freeze
|
headers.freeze
|
||||||
request.commit_cookie_jar!
|
request.commit_cookie_jar! unless committed?
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_buffer(response, body)
|
def build_buffer(response, body)
|
||||||
|
|
Loading…
Reference in a new issue