-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
GET
requests with bodies in entry worker (#677)
Whilst prohibited by the `Request` API spec, `GET` requests are allowed to have bodies. If `Content-Length` or `Transfer-Encoding` are specified, `workerd` will give the request a (potentially empty) body. Passing a bodied-GET-request through to the `new Request()` constructor should throw, but `workerd` has special handling to allow this if a `Request` instance is passed. Miniflare was previously decomposing the request before passing it back to the `new Request()` constructor, defeating this detection. This change ensures we always pass full `Request` instances to the `new Request()` constructor in the entry worker. Closes cloudflare/workerd#1122
- Loading branch information
Showing
2 changed files
with
55 additions
and
7 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
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