Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Undefine #to_ary in ActionController::Live::Buffer
ActionDispatch::Response delegates #to_ary to the internal ActionDispatch::Response::Buffer, defining #to_ary is an indicator that the response body can be buffered and/or cached by Rack middlewares, this is not the case for Live responses so we undefine it for this Buffer subclass. Puma raises an exception trying to call #to_ary in Live::Buffer expecting it to return an array if defined: https://github.com/puma/puma/blob/188f5da1920ff99a8689b3e9b46f2f26b7c62d66/lib/puma/request.rb#L183-L186
- Loading branch information
1 parent
f642505
commit 0174283
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters