Skip to content

Commit 13d2417

Browse files
fixing typo in main.go
1 parent 13593af commit 13d2417

File tree

1 file changed

+1
-1
lines changed
  • 016_building-a-tcp-server-for-http/01

1 file changed

+1
-1
lines changed

016_building-a-tcp-server-for-http/01/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func request(conn net.Conn) {
5656

5757
func respond(conn net.Conn) {
5858

59-
body := `<!DOCTYPE html><html lang="en"><head><meta charet="UTF-8"><title></title></head><body><strong>Hello World</strong></body></html>`
59+
body := `<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title></title></head><body><strong>Hello World</strong></body></html>`
6060

6161
fmt.Fprint(conn, "HTTP/1.1 200 OK\r\n")
6262
fmt.Fprintf(conn, "Content-Length: %d\r\n", len(body))

0 commit comments

Comments
 (0)