|
@@ -29,19 +29,19 @@ std::string PathWithoutParams(const std::string& path) {
|
|
|
|
|
|
std::string GetMimeTypeForPath(const std::string& path) {
|
|
|
std::string filename = PathWithoutParams(path);
|
|
|
- if (EndsWith(filename, ".html", false)) {
|
|
|
+ if (base::EndsWith(filename, ".html", false)) {
|
|
|
return "text/html";
|
|
|
- } else if (EndsWith(filename, ".css", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".css", false)) {
|
|
|
return "text/css";
|
|
|
- } else if (EndsWith(filename, ".js", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".js", false)) {
|
|
|
return "application/javascript";
|
|
|
- } else if (EndsWith(filename, ".png", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".png", false)) {
|
|
|
return "image/png";
|
|
|
- } else if (EndsWith(filename, ".gif", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".gif", false)) {
|
|
|
return "image/gif";
|
|
|
- } else if (EndsWith(filename, ".svg", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".svg", false)) {
|
|
|
return "image/svg+xml";
|
|
|
- } else if (EndsWith(filename, ".manifest", false)) {
|
|
|
+ } else if (base::EndsWith(filename, ".manifest", false)) {
|
|
|
return "text/cache-manifest";
|
|
|
}
|
|
|
return "text/html";
|