mirror of
https://github.com/servo/servo.git
synced 2025-09-14 17:08:22 +01:00
This PR fixes some test-cases in https://wpt.fyi/results/fetch/api/response/response-consume-empty.any.html?product=servo Fetch standard indicates `Response:bodyUsed` should return `false` if the body content is null , even if the stream was disturbed. https://fetch.spec.whatwg.org/#dom-body-bodyused > The bodyUsed getter steps are to return true if [this](https://webidl.spec.whatwg.org/#this)’s [body](https://fetch.spec.whatwg.org/#concept-body-body) is non-null and [this](https://webidl.spec.whatwg.org/#this)’s [body](https://fetch.spec.whatwg.org/#concept-body-body)’s [stream](https://fetch.spec.whatwg.org/#concept-body-stream) is [disturbed](https://streams.spec.whatwg.org/#is-readable-stream-disturbed); otherwise false. --------- Signed-off-by: araya <araya@araya.dev> |
||
---|---|---|
.. | ||
api | ||
compression-dictionary | ||
connection-pool | ||
content-encoding | ||
content-length | ||
content-type | ||
corb | ||
cross-origin-resource-policy | ||
data-urls | ||
fetch-later | ||
h1-parsing | ||
http-cache | ||
local-network-access | ||
metadata | ||
nosniff | ||
orb/tentative | ||
origin | ||
range | ||
redirect-navigate | ||
redirects | ||
security | ||
stale-while-revalidate |