commit | 21e47d831bafb59f22b1ea8098f709677ec8ce33 | [log] [tgz] |
---|---|---|
author | Joe Harrison <joehazzers@gmail.com> | Mon Mar 23 14:21:20 2015 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Mon Mar 23 16:53:00 2015 +0000 |
tree | e2452339b00b233af6e4a8937b25301b25781e69 | |
parent | 93238623e2c8dfa23c2d0845613349ff8df7fbb7 [diff] |
mime: add "image/svg+xml" type for extension ".svg" Since there is internal usage of svg files in cmd/trace served via HTTP, add it to the (small) map of mime types. MIME type as documented at http://www.w3.org/TR/SVG11/mimereg.html Change-Id: If14f07cbe2e55d8d68af663f30920a530e2e7974 Reviewed-on: https://go-review.googlesource.com/7942 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/src/mime/type.go b/src/mime/type.go index ffda1f0..c605a94 100644 --- a/src/mime/type.go +++ b/src/mime/type.go
@@ -22,6 +22,7 @@ ".js": "application/x-javascript", ".pdf": "application/pdf", ".png": "image/png", + ".svg": "image/svg+xml", ".xml": "text/xml; charset=utf-8", } mimeTypes = clone(mimeTypesLower)