File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
016_building-a-tcp-server-for-http Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func request(conn net.Conn) {
56
56
57
57
func respond (conn net.Conn ) {
58
58
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>`
60
60
61
61
fmt .Fprint (conn , "HTTP/1.1 200 OK\r \n " )
62
62
fmt .Fprintf (conn , "Content-Length: %d\r \n " , len (body ))
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func request(conn net.Conn) {
58
58
59
59
func respond (conn net.Conn ) {
60
60
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>`
62
62
63
63
fmt .Fprint (conn , "HTTP/1.1 200 OK\r \n " )
64
64
fmt .Fprintf (conn , "Content-Length: %d\r \n " , len (body ))
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func contact(conn net.Conn) {
122
122
123
123
func apply (conn net.Conn ) {
124
124
125
- body := `<!DOCTYPE html><html lang="en"><head><meta charet ="UTF-8"><title></title></head><body>
125
+ body := `<!DOCTYPE html><html lang="en"><head><meta charset ="UTF-8"><title></title></head><body>
126
126
<strong>APPLY</strong><br>
127
127
<a href="/">index</a><br>
128
128
<a href="/about">about</a><br>
You can’t perform that action at this time.
0 commit comments