change for upstream.

This commit is contained in:
mattn 2011-05-18 09:31:47 +09:00
parent 19a383f5b4
commit c922a1691f

View File

@ -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
} }