]> Cypherpunks repositories - gostls13.git/commitdiff
mime: add "image/svg+xml" type for extension ".svg"
authorJoe Harrison <joehazzers@gmail.com>
Mon, 23 Mar 2015 14:21:20 +0000 (14:21 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 23 Mar 2015 16:53:00 +0000 (16:53 +0000)
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>

src/mime/type.go

index ffda1f0ce5fed6eeecde103fc14938a9536e0a42..c605a94787cc656fbb72b7645085fd3713f725f7 100644 (file)
@@ -22,6 +22,7 @@ var (
                ".js":   "application/x-javascript",
                ".pdf":  "application/pdf",
                ".png":  "image/png",
+               ".svg":  "image/svg+xml",
                ".xml":  "text/xml; charset=utf-8",
        }
        mimeTypes = clone(mimeTypesLower)