Skip to content

Commit

Permalink
Fixes for latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewScott committed Jul 18, 2011
1 parent b155a82 commit ec50b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ func send(req *http.Request) (resp *http.Response, err os.Error) {
*/
var conn io.ReadWriteCloser
if req.URL.Scheme == "http" {
conn, err = net.Dial("tcp", "", addr)
conn, err = net.Dial("tcp", addr)
} else { // https
conn, err = tls.Dial("tcp", "", addr, nil)
conn, err = tls.Dial("tcp", addr, nil)
}
if err != nil {
return nil, err
Expand All @@ -116,7 +116,7 @@ func send(req *http.Request) (resp *http.Response, err os.Error) {
}

reader := bufio.NewReader(conn)
resp, err = http.ReadResponse(reader, req.Method)
resp, err = http.ReadResponse(reader, req)
if err != nil {
conn.Close()
return nil, err
Expand Down

0 comments on commit ec50b4c

Please sign in to comment.