Skip to content

Issue fix: Skip the URL parse for CONNECT requests - #83

Open
denizzzka wants to merge 1 commit into
vibe-d:masterfrom
denizzzka:connect-authority-form
Open

denizzzka wants to merge 1 commit into
vibe-d:masterfrom
denizzzka:connect-authority-form

Conversation

@denizzzka

@denizzzka denizzzka commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

A CONNECT request carries an authority (host:port), not a URL.

Server parses every request target with URL.parse before the handler runs, so CONNECT 1.1.1.1:443 gets a 400 (Schema must start with an alphabetical char, found: 1) and the handler never sees it. Hostnames survive by accident: they happen to parse as a scheme.

@denizzzka denizzzka changed the title Skip the URL parse for CONNECT requests Issue fix: Skip the URL parse for CONNECT requests Oct 19, 2026
A CONNECT request carries an authority-form target (host:port), not a
URL, so URL.parse() rejects a numeric host with 400 before the handler
runs. Skip the eager parse for CONNECT; requestURI keeps the raw
authority and the URL-derived fields stay empty.
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.

1 participant