Index: components/devtools_http_handler/devtools_http_handler.cc |
diff --git a/components/devtools_http_handler/devtools_http_handler.cc b/components/devtools_http_handler/devtools_http_handler.cc |
index 0080f68825ad3a7768a9b2b68d12dacf8abb90e3..40f7edc83b41e3a2fae59c0408d644bf7f788272 100644 |
--- a/components/devtools_http_handler/devtools_http_handler.cc |
+++ b/components/devtools_http_handler/devtools_http_handler.cc |
@@ -359,17 +359,22 @@ static std::string PathWithoutParams(const std::string& path) { |
} |
static std::string GetMimeType(const std::string& filename) { |
- if (base::EndsWith(filename, ".html", false)) { |
+ if (base::EndsWith(filename, ".html", base::CompareCase::INSENSITIVE_ASCII)) { |
return "text/html"; |
- } else if (base::EndsWith(filename, ".css", false)) { |
+ } else if (base::EndsWith(filename, ".css", |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
return "text/css"; |
- } else if (base::EndsWith(filename, ".js", false)) { |
+ } else if (base::EndsWith(filename, ".js", |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
return "application/javascript"; |
- } else if (base::EndsWith(filename, ".png", false)) { |
+ } else if (base::EndsWith(filename, ".png", |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
return "image/png"; |
- } else if (base::EndsWith(filename, ".gif", false)) { |
+ } else if (base::EndsWith(filename, ".gif", |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
return "image/gif"; |
- } else if (base::EndsWith(filename, ".json", false)) { |
+ } else if (base::EndsWith(filename, ".json", |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
return "application/json"; |
} |
LOG(ERROR) << "GetMimeType doesn't know mime type for: " |