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 50d5c8629a0651016371a11d15f16387116cf707..b5bc4b278018c939033eb921d027e7b098615a82 100644 |
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp |
@@ -431,6 +431,12 @@ bool Response::bodyUsed() { |
return internalBodyBuffer() && internalBodyBuffer()->isStreamDisturbed(); |
} |
+String Response::contentType() const { |
+ String result; |
+ m_response->headerList()->get(HTTPNames::Content_Type, result); |
+ return result; |
+} |
+ |
String Response::mimeType() const { |
return m_response->mimeType(); |
} |