Commit a971374
[Workers] Request redirect mode: only follow and manual are supported
The Request page listed `error` as a valid redirect mode in both the
RequestInit option and the read-only property. workerd rejects it at
Request construction with a TypeError ("Invalid redirect value, must be
one of "follow" or "manual" ("error" won't be implemented since it does not
make sense at the edge; use "manual" and check the response status
code)."), so a Worker that passes it never sends the request. Document the
two supported values and the behaviour of `error`.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>1 parent 72c8124 commit a971374
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
0 commit comments