mirror of https://github.com/golang/go.git
mime: look up mime types on Arch Linux
Some systems use "httpd" directory structure instead of "apache"
Change-Id: I77600baf356f0c0c3359b331505b0426112daebb
GitHub-Last-Rev: c64766f88c
GitHub-Pull-Request: golang/go#39416
Reviewed-on: https://go-review.googlesource.com/c/go/+/236677
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Trust: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
d73d5d9fb0
commit
ece7a33386
|
|
@ -20,6 +20,7 @@ var typeFiles = []string{
|
|||
"/etc/mime.types",
|
||||
"/etc/apache2/mime.types",
|
||||
"/etc/apache/mime.types",
|
||||
"/etc/httpd/conf/mime.types",
|
||||
}
|
||||
|
||||
func loadMimeFile(filename string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue