Skip to content
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

Fix Rollbar JS middleware truncating response body #961

Conversation

wpolicarpo
Copy link
Contributor

The JS middleware injects Rollbar JS snippet into the response body if not already added.

If for some reason the Content-Length header was previously set by another middleware, we also need to update that header to reflect the new response body size.

Fixes #960.

The JS middleware injects Rollbar JS snippet into the response body
if not already added.

If for some reason the `Content-Length` header was previously set
by another middleware, we also need to update that header to reflect
the new response body size.
@wpolicarpo wpolicarpo force-pushed the fix-js-middleware-truncating-response-body branch from 6b706cc to 31f58c0 Compare May 12, 2020 18:52
@waltjones
Copy link
Contributor

@wpolicarpo Thank you!

@waltjones waltjones merged commit e5f64df into rollbar:master Jun 18, 2020
@wpolicarpo wpolicarpo deleted the fix-js-middleware-truncating-response-body branch June 18, 2020 08:56
@waltjones
Copy link
Contributor

https://github.com/rollbar/rollbar-gem/releases/tag/v2.26.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rollbar JS middleware truncates response body
2 participants