Skip to content

Commit d4bd66b

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

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

5959
func respond(conn net.Conn) {
6060

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

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

0 commit comments

Comments
 (0)