Commit 333f6cb
authored
fix(fetch): set correct type for Response.redirect() (#5212)
This Pull Request fixes/closes #5211.
It changes the following:
- Change `ResponseType::Basic` to `ResponseType::Default` in
`Response.redirect()` - a new response type is `"default"` unless stated
otherwise per the Fetch Standard.
- Add a regression test asserting `Response.redirect().type ===
"default"`.
Testing:
```bash
cargo test -p boa_runtime response -- --nocapture
```
Spec reference: https://fetch.spec.whatwg.org/#dom-response-redirect1 parent f90fd30 commit 333f6cb
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
196 | 210 | | |
197 | 211 | | |
198 | 212 | | |
| |||
0 commit comments