We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f939c7e + ec79d0d commit 9b4cb79Copy full SHA for 9b4cb79
zh/08.1.md
@@ -149,7 +149,9 @@ func main() {
149
checkError(err)
150
_, err = conn.Write([]byte("HEAD / HTTP/1.0\r\n\r\n"))
151
152
- result, err := ioutil.ReadAll(conn)
+ // result, err := ioutil.ReadAll(conn)
153
+ result := make([]byte, 256)
154
+ _, err = conn.Read(result)
155
156
fmt.Println(string(result))
157
os.Exit(0)
0 commit comments