Skip to content

adjust web-icoming handling of https protocol checks#1419

Open
alsoscotland wants to merge 1 commit intohttp-party:masterfrom
alsoscotland:issue_1418_web_incoming_https_consistency
Open

adjust web-icoming handling of https protocol checks#1419
alsoscotland wants to merge 1 commit intohttp-party:masterfrom
alsoscotland:issue_1418_web_incoming_https_consistency

Conversation

@alsoscotland
Copy link
Copy Markdown

  • inconsistency between regex check and === 'https:' resulted in
    mismatch of secure port and protocol in common.setupOutgoing

#1418

  - inconsistency between regex check and === 'https:' resulted in
    mismatch of secure port and protocol in common.setupOutgoing
pi0 added a commit to unjs/httpxy that referenced this pull request Mar 25, 2026
…l checks

Upstream: http-party/node-http-proxy#1419
The forward, target, and redirect code paths used `=== "https:"` which
missed `wss:` and other SSL protocol variants. The rest of the codebase
already uses the shared `isSSL` regex — align these three call sites.
@pi0
Copy link
Copy Markdown

pi0 commented Mar 25, 2026

This issue has been fixed in unjs/httpxy#123.

pi0 added a commit to unjs/httpxy that referenced this pull request Mar 25, 2026
…l checks (#123)

* fix(web-incoming): use `isSSL` regex for consistent https/wss protocol checks

Upstream: http-party/node-http-proxy#1419
The forward, target, and redirect code paths used `=== "https:"` which
missed `wss:` and other SSL protocol variants. The rest of the codebase
already uses the shared `isSSL` regex — align these three call sites.
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.

2 participants