Skip to content

WebServer: Set Content-Length: 0 header during redirection#26701

Open
tbhaxor wants to merge 1 commit intoSerenityOS:masterfrom
tbhaxor:fix/webserver
Open

WebServer: Set Content-Length: 0 header during redirection#26701
tbhaxor wants to merge 1 commit intoSerenityOS:masterfrom
tbhaxor:fix/webserver

Conversation

@tbhaxor
Copy link
Copy Markdown
Contributor

@tbhaxor tbhaxor commented Apr 6, 2026

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Apr 6, 2026
@@ -228,6 +228,7 @@ ErrorOr<void> Client::send_redirect(StringView redirect_path, HTTP::HttpRequest
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, but it would be nice to have some details in the commit description to say what is the issue that this patch is fixing and why it's fixing it. (So that clients like curl hang because they are waiting on some content.)

Also, while adding an external reference is nice, this python bug is not an authoritative source. So it should be introduced differently, something like:

The issue was fixed using the same approach in Python's http.server, see [1].
[1] the link.

(If you find a better source, like an actual specification it would be even better!)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I wanted to include such message, I am looking for citations from HTTP RFCs, so that it doesn't sound like made up thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👀 pr-needs-review PR needs review from a maintainer or community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebServer: 301 redirects get stuck

2 participants