| Index: Source/modules/fetch/FetchManager.cpp
|
| diff --git a/Source/modules/fetch/FetchManager.cpp b/Source/modules/fetch/FetchManager.cpp
|
| index 05776540befede054c7932bcbef1765372ce3a2f..590ee3f8e0c2e47c08a5aad350b4ea08afa6a5bc 100644
|
| --- a/Source/modules/fetch/FetchManager.cpp
|
| +++ b/Source/modules/fetch/FetchManager.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "core/loader/ThreadableLoaderClient.h"
|
| #include "modules/fetch/Body.h"
|
| #include "modules/fetch/BodyStreamBuffer.h"
|
| +#include "modules/fetch/DataConsumerHandleUtil.h"
|
| #include "modules/fetch/FetchRequestData.h"
|
| #include "modules/fetch/Response.h"
|
| #include "modules/fetch/ResponseInit.h"
|
| @@ -111,7 +112,7 @@ void FetchManager::Loader::didReceiveResponse(unsigned long, const ResourceRespo
|
| break;
|
| }
|
| }
|
| - FetchResponseData* responseData = FetchResponseData::createWithBuffer(BodyStreamBuffer::create(handle, "Failed to fetch"));
|
| + FetchResponseData* responseData = FetchResponseData::createWithBuffer(BodyStreamBuffer2::create(createFetchDataConsumerHandleFromWebHandle(handle)));
|
| responseData->setStatus(response.httpStatusCode());
|
| responseData->setStatusMessage(response.httpStatusText());
|
| for (auto& it : response.httpHeaderFields())
|
|
|