mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
Significant extension to http.Response, which now adheres to the
usage pattern of http.Request and paves the way to persistent connection handling. R=rsc CC=golang-dev https://golang.org/cl/185043
This commit is contained in:
parent
4f8117d9eb
commit
914c626cae
7 changed files with 550 additions and 96 deletions
|
|
@ -90,7 +90,7 @@ func handshake(resourceName, host, origin, location, protocol string, br *bufio.
|
|||
}
|
||||
bw.WriteString("\r\n")
|
||||
bw.Flush()
|
||||
resp, err := http.ReadResponse(br)
|
||||
resp, err := http.ReadResponse(br, "GET")
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue