From c922a1691f740b7305bb3bfa149fab5252586628 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 18 May 2011 09:31:47 +0900 Subject: [PATCH] change for upstream. --- xmpp.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xmpp.go b/xmpp.go index 15e96a7..6987a9b 100644 --- a/xmpp.go +++ b/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, "\r\n") 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 { return nil, err }