From 073e19b33017709eb72d9a795b53c0394eac7b03 Mon Sep 17 00:00:00 2001 From: Chloe Kudryavtsev Date: Tue, 3 Aug 2021 16:04:43 -0400 Subject: add xh to the list of cli utilities xh is https://github.com/ducaale/xh --- http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/http.go b/http/http.go index 9a56953..626d75b 100644 --- a/http/http.go +++ b/http/http.go @@ -370,7 +370,7 @@ func NotFoundHandler(w http.ResponseWriter, r *http.Request) *appError { func cliMatcher(r *http.Request) bool { ua := useragent.Parse(r.UserAgent()) switch ua.Product { - case "curl", "HTTPie", "httpie-go", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik": + case "curl", "HTTPie", "httpie-go", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik", "xh": return true } return false -- cgit v1.2.3