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

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

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Rebase 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
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 46c01a5be1d4d1bf626e69eddc876859522ad704..2337c03ae2ca91c7fe7e76e4635300387dad12bf 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp
@@ -425,6 +425,12 @@ String Response::MimeType() const {
return response_->MimeType();
}
+String Response::ContentType() const {
+ String result;
+ response_->HeaderList()->Get(HTTPNames::Content_Type, result);
+ return result;
+}
+
String Response::InternalMIMEType() const {
return response_->InternalMIMEType();
}

Powered by Google App Engine
This is Rietveld 408576698