-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fetch): align
Request
with spec (#85)
* fix: align with spec for Request method normalization * chore: fix changeset --------- Co-authored-by: Matt Brophy <[email protected]>
- Loading branch information
1 parent
c1339b9
commit ace4223
Showing
3 changed files
with
81 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@web-std/fetch": patch | ||
--- | ||
|
||
Align with [spec](https://fetch.spec.whatwg.org/#methods) for `new Request()` `method` normalization | ||
|
||
- Only `DELETE`, `GET`, `HEAD`, `OPTIONS`, `POST`, `PUT` get automatically uppercased | ||
- Note that `method: "patch"` will no longer be automatically uppercased | ||
- Throw a `TypeError` for `CONNECT`, `TRACE`, and `TRACK` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters