diff options
author | Andy Williams <andy@andy.xyz> | 2020-06-05 10:18:47 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2020-10-27 15:22:02 +0000 |
commit | ece7a33386a4fbd2ff9859902f780ed82120b985 (patch) | |
tree | b765995d0f333eb18a6b12817c9f6dda813a8789 | |
parent | d73d5d9fb0c2b963bd58ed0ab679dd71498f118e (diff) | |
download | go-ece7a33386a4fbd2ff9859902f780ed82120b985.tar.gz go-ece7a33386a4fbd2ff9859902f780ed82120b985.zip |
mime: look up mime types on Arch Linux
Some systems use "httpd" directory structure instead of "apache"
Change-Id: I77600baf356f0c0c3359b331505b0426112daebb
GitHub-Last-Rev: c64766f88cc28899d3d387e3eebfa4fcc3eef808
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>
-rw-r--r-- | src/mime/type_unix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mime/type_unix.go b/src/mime/type_unix.go index 0b247b623a..3a25002842 100644 --- a/src/mime/type_unix.go +++ b/src/mime/type_unix.go @@ -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) { |