Commit 3df099f5 authored by horo's avatar horo Committed by Commit bot

[DevTools] Support SVG file in DevTools window. [1/2 chromium]

We are using .svg file in ServiceWorkersView but the mime-type for .svg file is not correctly set.

BUG=466871

Review URL: https://codereview.chromium.org/1035873002

Cr-Commit-Position: refs/heads/master@{#322393}
parent 4e5b2bba
......@@ -76,6 +76,8 @@ std::string GetMimeTypeForPath(const std::string& path) {
return "image/png";
} else if (EndsWith(filename, ".gif", false)) {
return "image/gif";
} else if (EndsWith(filename, ".svg", false)) {
return "image/svg+xml";
} else if (EndsWith(filename, ".manifest", false)) {
return "text/cache-manifest";
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment