mirror of https://github.com/golang/go.git
mime: fix mime type file name on Plan 9
There was a typo introduced in the initial implementation of the Plan 9 support of the mime package. On Plan 9, the mime type file name should be /sys/lib/mimetype instead of /sys/lib/mimetypes. Change-Id: If0f0a9b6f3fbfa8dde551f790e83bdd05e8f0acb Reviewed-on: https://go-review.googlesource.com/23087 Run-TryBot: Minux Ma <minux@golang.org> Reviewed-by: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b4bf0663fa
commit
6cc6ef82ea
|
|
@ -21,7 +21,7 @@ func initMimePlan9() {
|
|||
}
|
||||
|
||||
var typeFiles = []string{
|
||||
"/sys/lib/mimetypes",
|
||||
"/sys/lib/mimetype",
|
||||
}
|
||||
|
||||
func initMimeForTests() map[string]string {
|
||||
|
|
|
|||
Loading…
Reference in New Issue