You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When using SSG (with server routes), if prerendered indexes contain 0x0D (CR - "carriage return") characters, the responses for these indexes contain wrong "Content-Length" headers, which causes the requests to remain "hanging" until the server times them out. As far as I can tell, AngularNodeAppEngine removes these "CR" characters from the response body but sets the "Content-Length" header to be the same as the original index.html file size (as if no modification was performed).
To reproduce the problem:
Create a fresh Angular project with SSR and server routing;
Run build;
Go to the dist folder and add some CRs (or CRLFs) to index.html and index_html.mjs files;
Run serve:ssr:[project-name];
Make a request for a modified index.
Please provide a link to a minimal reproduction of the bug
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When using SSG (with server routes), if prerendered indexes contain 0x0D (CR - "carriage return") characters, the responses for these indexes contain wrong "Content-Length" headers, which causes the requests to remain "hanging" until the server times them out. As far as I can tell, AngularNodeAppEngine removes these "CR" characters from the response body but sets the "Content-Length" header to be the same as the original index.html file size (as if no modification was performed).
To reproduce the problem:
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
In error example pay attention that:
Content-Length: 20846
RawContentLength : 20845
The text was updated successfully, but these errors were encountered: