| Index: third_party/WebKit/Source/modules/fetch/FetchManager.cpp
|
| diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
|
| index 198aacf5f99f4e40b6c31960578d37c22fad1206..3e5125a5851fbbf41f97ccf731ca9e265da48809 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
|
| +++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
|
| @@ -832,14 +832,6 @@ void FetchManager::Loader::performHTTPFetch(bool corsFlag,
|
| void FetchManager::Loader::performDataFetch() {
|
| ASSERT(m_request->url().protocolIsData());
|
|
|
| - // Spec: https://fetch.spec.whatwg.org/#concept-basic-fetch
|
| - // If |request|'s method is `GET` .... Otherwise, return a network error.
|
| - if (m_request->method() != HTTPNames::GET) {
|
| - performNetworkError(
|
| - "Only 'GET' method is allowed for data URLs in Fetch API.");
|
| - return;
|
| - }
|
| -
|
| ResourceRequest request(m_request->url());
|
| request.setRequestContext(m_request->context());
|
| request.setUseStreamOnResponse(true);
|
|
|