Skip to content

mime: wrong content-type return when use svg as css background-image #6378

@gopherbot

Description

@gopherbot

by ipv6.elata:

the right return content-type is image/svg+xml


Which operating system are you using?
windows 7 64bit

Which version are you using?  (run 'go version')
go1.1.2 windows/386

Please provide any additional information below.
the related source file is
http://golang.org/src/pkg/mime/type.go
but modify the registry to edit mimetypes is very trouble on winodws
I think  the easy way is add a mime type 
".svg":  "image/svg+xml", in mimeTypes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions