Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1001)

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.cpp

Issue 2840193002: fetch: Align RequestInit's |headers| with the spec. (Closed)
Patch Set: Use using, not typedef Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b382c71a4f0f14a9bf1794baa2a25352fc4010fa..46c01a5be1d4d1bf626e69eddc876859522ad704 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -15,7 +15,6 @@
#include "bindings/core/v8/V8FormData.h"
#include "bindings/core/v8/V8PrivateProperty.h"
#include "bindings/core/v8/V8URLSearchParams.h"
-#include "bindings/modules/v8/ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders.h"
#include "core/dom/DOMArrayBuffer.h"
#include "core/dom/DOMArrayBufferView.h"
#include "core/dom/ExecutionContext.h"
@@ -229,15 +228,7 @@ Response* Response::Create(ScriptState* script_state,
r->response_->HeaderList()->ClearList();
// "2. Fill |r|'s Headers object with |init|'s headers member. Rethrow
// any exceptions."
- if (init.headers().isByteStringSequenceSequence()) {
- r->headers_->FillWith(init.headers().getAsByteStringSequenceSequence(),
- exception_state);
- } else if (init.headers().isByteStringByteStringRecord()) {
- r->headers_->FillWith(init.headers().getAsByteStringByteStringRecord(),
- exception_state);
- } else if (init.headers().isHeaders()) {
- r->headers_->FillWith(init.headers().getAsHeaders(), exception_state);
- }
+ r->headers_->FillWith(init.headers(), exception_state);
if (exception_state.HadException())
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698