From 73dfeb428a2f1ca2d35ddbaf89bd5fd3f0d85145 Mon Sep 17 00:00:00 2001 From: tjpcc Date: Sat, 23 Sep 2023 13:18:41 -0600 Subject: recognize .gph as gophermap --- gopher/response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gopher') diff --git a/gopher/response.go b/gopher/response.go index 46f9db0..c594fa7 100644 --- a/gopher/response.go +++ b/gopher/response.go @@ -168,7 +168,7 @@ func (rdr *responseReader) ensureReader() { func GuessItemType(filepath string) types.Status { ext := path.Ext(filepath) switch ext { - case ".gophermap": + case ".gophermap", ".gph": return MenuType case ".txt", ".gmi", ".md": return TextFileType -- cgit v1.2.3