Add support for HTTPie. Fixes #13

This commit is contained in:
Martin Polden
2016-04-15 20:19:14 +02:00
parent f4420781a2
commit 5ad48ad3fa
3 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import (
const APPLICATION_JSON = "application/json"
var cliUserAgentExp = regexp.MustCompile(`^(?i)((curl|wget|fetch\slibfetch|Go-http-client)\/.*|Go\s1\.1\spackage\shttp)$`)
var cliUserAgentExp = regexp.MustCompile(`^((curl|Wget|fetch\slibfetch|Go-http-client|HTTPie)\/.*|Go\s1\.1\spackage\shttp)$`)
type API struct {
CORS bool