mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-15 13:33:31 +02:00
api: handle net/http as cli request
This commit is contained in:
@ -26,7 +26,7 @@ const (
|
||||
APPLICATION_JSON = "application/json"
|
||||
)
|
||||
|
||||
var cliUserAgentExp = regexp.MustCompile("^(?i)(curl|wget|fetch\\slibfetch)\\/.*$")
|
||||
var cliUserAgentExp = regexp.MustCompile(`^(?i)((curl|wget|fetch\slibfetch|Go-http-client)\/.*|Go\s1\.1\spackage\shttp)$`)
|
||||
|
||||
type API struct {
|
||||
CORS bool
|
||||
|
Reference in New Issue
Block a user