]> Cypherpunks repositories - gostls13.git/commitdiff
mime: fix mime type file name on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Sun, 15 May 2016 18:12:34 +0000 (20:12 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 15 May 2016 19:56:08 +0000 (19:56 +0000)
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>

src/mime/type_plan9.go

index c3ba186e7c6b4839a86f54a488989b7d12613b1d..14ff973405186392163ed42dd5db5b1d6e47fec7 100644 (file)
@@ -21,7 +21,7 @@ func initMimePlan9() {
 }
 
 var typeFiles = []string{
-       "/sys/lib/mimetypes",
+       "/sys/lib/mimetype",
 }
 
 func initMimeForTests() map[string]string {