Commit 2e46959
authored
fix(browser): Send gzipped request body as ArrayBuffer (#3172)
* fix(browser): Send gzipped request body as ArrayBuffer
In WebKit, calling `fetch` with a `Blob` in the body results in an empty
request. Using an ArrayBuffer allows the bytes to be written directly to
the request body buffer, while Blobs require a seperate lookup in a blob
registry. Presumably this step is failing (seems like a bug?).
* chore(browser): add changeset
* test: update expected body type1 parent 186871a commit 2e46959
File tree
3 files changed
+15
-18
lines changed- .changeset
- packages/browser/src
- __tests__
3 files changed
+15
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | | - | |
404 | | - | |
| 404 | + | |
| 405 | + | |
405 | 406 | | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 407 | + | |
411 | 408 | | |
412 | 409 | | |
413 | 410 | | |
| |||
505 | 502 | | |
506 | 503 | | |
507 | 504 | | |
508 | | - | |
| 505 | + | |
509 | 506 | | |
510 | | - | |
| 507 | + | |
511 | 508 | | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
| 509 | + | |
517 | 510 | | |
518 | 511 | | |
519 | 512 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
| |||
0 commit comments