]> Cypherpunks repositories - gostls13.git/commitdiff
mime: add mime.types paths for BSDs
authorMichael Gehring <mg@ebfe.org>
Thu, 11 Jun 2015 09:51:54 +0000 (11:51 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 12 Jun 2015 15:51:21 +0000 (15:51 +0000)
Change-Id: I22ac23e7e180071de4443291e0a644675200d642
Reviewed-on: https://go-review.googlesource.com/10950
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>

src/mime/type_dragonfly.go [new file with mode: 0644]
src/mime/type_freebsd.go [new file with mode: 0644]
src/mime/type_openbsd.go [new file with mode: 0644]

diff --git a/src/mime/type_dragonfly.go b/src/mime/type_dragonfly.go
new file mode 100644 (file)
index 0000000..d09d74a
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package mime
+
+func init() {
+       typeFiles = append(typeFiles, "/usr/local/etc/mime.types")
+}
diff --git a/src/mime/type_freebsd.go b/src/mime/type_freebsd.go
new file mode 100644 (file)
index 0000000..d09d74a
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package mime
+
+func init() {
+       typeFiles = append(typeFiles, "/usr/local/etc/mime.types")
+}
diff --git a/src/mime/type_openbsd.go b/src/mime/type_openbsd.go
new file mode 100644 (file)
index 0000000..c3b1abb
--- /dev/null
@@ -0,0 +1,9 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package mime
+
+func init() {
+       typeFiles = append(typeFiles, "/usr/share/misc/mime.types")
+}