diff options
author | Chloe Kudryavtsev <toast@toast.cafe> | 2021-08-03 16:04:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-03 16:04:43 -0400 |
commit | 073e19b33017709eb72d9a795b53c0394eac7b03 (patch) | |
tree | f89582d92b04353ad0dba17cb3c1b6f5c469c9d5 | |
parent | 70c9a8cbcada2598c17d241361d467cbfd15bcbd (diff) |
add xh to the list of cli utilities
xh is https://github.com/ducaale/xh
-rw-r--r-- | http/http.go | 2 |
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 |