add cli detection for httpie-go

This commit is contained in:
Chloe Kudryavtsev
2020-07-23 18:41:07 -04:00
parent eb6d590990
commit 7ad9af3b15
4 changed files with 7 additions and 3 deletions

View File

@ -317,7 +317,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", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik":
case "curl", "HTTPie", "httpie-go", "Wget", "fetch libfetch", "Go", "Go-http-client", "ddclient", "Mikrotik":
return true
}
return false