-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Duplicate chunks on JSON response #380
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
Comments
I tested this and was able reproduce it as well. It appears to be caused by the compression middleware. Removing |
Maybe it's a good idea to report a bug here? |
Actually even though I was seeing duplicate responses in chrome and firefox, when I actually looked at the network tab, or used postman, or node request, I was only seeing one object. So I'm not sure this is a bug afterall. |
As @DaftMonk mentioned it is seen in browsers and not in postman. I checked the HTTP request headers and when I add 'Accept' Header as html in postman the same problem is seen in postman as well. So I believe the browsers are handled/rendered differently with Accept type with html |
I came across this question on Stack Overflow and I was able to reproduce. If the response size is large enough the response body will be duplicated.
Code from the question:
Controller
Model
Seed
The text was updated successfully, but these errors were encountered: