apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

ERR_HTTP_HEADERS_SENT error when visiting parked pages ending with forward slash

Open Miselrkba opened this issue 4 years ago • 0 comments

To Reproduce

As discussed in https://discord.com/channels/517772094482677790/701815369005924374/912684621043486770

I created a piece page type and piece – article-page and article. It’s a blog with articles. It’s been parked at the url /spravy. When I create a new article and select publish and view I get redirected to the article http://localhost:3000/spravy/new-article which is fine. Also when you visit the parked page without the forward slash at the end it works fine. But when you visit parked page and leave a forward slash at the end http://localhost:3000/spravy/ the server crashes and I get ERR_HTTP_HEADERS_SENT.

Step by step instructions to reproduce the behavior: I'm sharing a simple test project here to that reproduces the issue. https://github.com/Miselrkba/apos-http-err Visit http://localhost:3000/spravy/ and the server will crash.

Screenshots If applicable, add screenshots to help explain your problem. http-headers-error

Miselrkba avatar Nov 24 '21 07:11 Miselrkba