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 356e6b6be722176c8c219ed0507117c71c58511f..a68a354137ee5bb97094b6b7cbff42e7213e3789 100644 |
--- a/third_party/WebKit/Source/modules/fetch/Response.cpp |
+++ b/third_party/WebKit/Source/modules/fetch/Response.cpp |
@@ -405,6 +405,13 @@ 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(); |