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) {
5656
5757func 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 ))
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func request(conn net.Conn) {
5858
5959func 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 ))
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func contact(conn net.Conn) {
122122
123123func apply (conn net.Conn ) {
124124
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>
126126 <strong>APPLY</strong><br>
127127 <a href="/">index</a><br>
128128 <a href="/about">about</a><br>
You can’t perform that action at this time.
0 commit comments