| Index: third_party/WebKit/Source/modules/fetch/Response.cpp
|
| diff --git a/third_party/WebKit/Source/modules/fetch/Response.cpp b/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| index 99c972aa326f49856cba4998caca82001fbdc16c..e9138c8802955fa5dc50e11d8c1269187a160618 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| +++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
|
| @@ -133,8 +133,8 @@ Response* Response::create(ScriptState* scriptState, ScriptValue bodyValue, cons
|
| // FormDataEncoder::generateUniqueBoundaryString.
|
| contentType = AtomicString("multipart/form-data; boundary=", AtomicString::ConstructFromLiteral) + formData->boundary().data();
|
| bodyHandle = FetchFormDataConsumerHandle::create(executionContext, formData.release());
|
| - } else if (RuntimeEnabledFeatures::responseConstructedWithReadableStreamEnabled() && ReadableStreamOperations::isReadableStream(scriptState, body)) {
|
| - bodyHandle = ReadableStreamDataConsumerHandle::create(scriptState, body);
|
| + } else if (RuntimeEnabledFeatures::responseConstructedWithReadableStreamEnabled() && ReadableStreamOperations::isReadableStream(scriptState, bodyValue)) {
|
| + bodyHandle = ReadableStreamDataConsumerHandle::create(scriptState, bodyValue);
|
| } else {
|
| String string = toUSVString(isolate, body, exceptionState);
|
| if (exceptionState.hadException())
|
|
|