-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inject_js incompatible with chunked responses #533
Comments
Relevant TCP dump:
|
It looks like RMP is just straight up writing to the socket with |
By the time RMP sees the response End of my body looks like:
|
It seems like the workaround would be to inject my own script, but I'm confused. |
I was hoping I could do something like Rack::MiniProfiler.current.inject_js = false
Rack::MiniProfiler.new(nil, Rack::MiniProfiler.config).get_profile_script(request.env) ...in a template, but the |
When used with an
ActionController::Streaming
-enabled action (stream: true
), something in RMP screws up the chunked encoding while inserting the RMP script tags.The text was updated successfully, but these errors were encountered: