Closed yutakahirano closed 7 years ago
We should probably annotate body in some way. Either it's known-length (everything we do today) or unknown (streams).
We should probably annotate body in some way. Either it's known-length (everything we do today) or unknown (streams).
FWIW, this matches exactly what we have to do at the implementation level. So sounds good to me.
The current spec says:
POST
orPUT
, then set contentLengthValue to0
.Content-Length
/contentLengthValue to httpRequest's header list.We should not append a
Content-Length
header when uploading a Request made with a ReadableStream.