Skip to content

Commit

Permalink
fix exception when response is Rack::File::Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Dec 4, 2023
1 parent bad5ccd commit c0eac52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rails-footnotes/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def initialize(controller)
@notes = []

revert_pos(controller.response_body) do
@body = controller.response.body
if controller.response.stream.respond_to?(:body)
@body = controller.response.body
end
end
end

Expand Down

0 comments on commit c0eac52

Please sign in to comment.