forked from jshiffer/go-xmpp
change for upstream.
This commit is contained in:
parent
19a383f5b4
commit
c922a1691f
3
xmpp.go
3
xmpp.go
@ -79,7 +79,8 @@ func NewClient(host, user, passwd string) (*Client, os.Error) {
|
|||||||
fmt.Fprintf(c, "Host: %s\r\n", host)
|
fmt.Fprintf(c, "Host: %s\r\n", host)
|
||||||
fmt.Fprintf(c, "\r\n")
|
fmt.Fprintf(c, "\r\n")
|
||||||
br := bufio.NewReader(c)
|
br := bufio.NewReader(c)
|
||||||
resp, err := http.ReadResponse(br, "CONNECT")
|
req, _ := http.NewRequest("CONNECT", host, nil)
|
||||||
|
resp, err := http.ReadResponse(br, req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user