0x19 / goesl

Freeswitch Event Socket Library wrapper for Go
https://godoc.org/github.com/0x19/goesl
MIT License
125 stars 124 forks source link

connect client has ERROR Expected auth/request content type. Got text/rude-rejection #25

Closed ranryl closed 3 years ago

ranryl commented 3 years ago

goesl.NewClient(host, port, passwd, timeout)

has ERROR Expected auth/request content type. Got text/rude-rejection goesl/client.go: 64,mistake here if cmr.Get("Content-Type") != "auth/request" { Error(EUnexpectedAuthHeader, cmr.Get("Content-Type")) return fmt.Errorf(EUnexpectedAuthHeader, cmr.Get("Content-Type")) }

system: centos 7.5