mirror of
https://github.com/denoland/deno.git
synced 2025-07-07 21:35:07 +00:00
fix(ext/http): restore special handling for '*' path in requests
This commit is contained in:
parent
9ca9e77a44
commit
add1a2611b
1 changed files with 5 additions and 0 deletions
|
@ -300,6 +300,11 @@ class InnerRequest {
|
|||
const authority = this.#methodAndUri[1] ?? this.#context.fallbackHost;
|
||||
const path = this.#methodAndUri[2];
|
||||
|
||||
// * is valid only for OPTIONS (RFC 9110, Section 9.3.7)
|
||||
if (path === "*" && method === "OPTIONS") {
|
||||
return (this.#urlValue = "*");
|
||||
}
|
||||
|
||||
// CONNECT requires an authority
|
||||
if (method === "CONNECT") {
|
||||
return (this.#urlValue = this.#methodAndUri[1]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue