aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-08-03 23:16:13 +0200
committerGitHub <noreply@github.com>2021-08-03 23:16:13 +0200
commit7b98b93f528f044cd2832181d6f0159d844050b1 (patch)
tree0edf514ad7551c0191208e1577488a449b91f4e8
parent67f5a9e5a8976aa88efb0d7b9c6d195e27f32a45 (diff)
parent073e19b33017709eb72d9a795b53c0394eac7b03 (diff)
Merge pull request #141 from CosmicToast/patch-1
add xh to the list of cli utilities
-rw-r--r--http/http.go2
1 files changed, 1 insertions, 1 deletions
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