15:59
<ondras>
when using fetch response's body.getReader().read(), I always receive Uint8Arrays? is there a way to retrieve strings?
17:49
<Domenic>
ondras: https://encoding.spec.whatwg.org/#interface-textdecoderstream
18:43
<ondras>
Domenic: thanks! any idea about implementation status?
18:44
<Domenic>
ondras: implemented in Chrome, probably need a polyfill elsewhere
18:44
<ondras>
Domenic: okay, nice!
18:44
<ondras>
an unrelated observation: Firefox buffers chunked response unless a Content-Type is set
18:45
<ondras>
when CT is available, the response.body.getReader().read() does not wait for the whole response, as expected
18:45
<Domenic>
Huh, kind of strange, but I dunno, non-Content-Type responses are a bit of a wild west
18:45
<ondras>
yeah
18:45
<ondras>
I found that out by accident when I forgot to set the header and FF behaved in a weird way
18:55
<Domenic>
Worth filing a bug IMO
19:02
<ondras>
yeah
19:02
<ondras>
okay
19:11
<ondras>
https://bugzilla.mozilla.org/show_bug.cgi?id=1544313