Skip to content

Commit 2bdef48

Browse files
authored
Merge pull request #23 from cxhercules/doc_fix_handson
Updates to README and solution
2 parents 61ec819 + fee3a92 commit 2bdef48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

022_hands-on/02/11_hands-on/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Building upon the code from the previous problem:
22

3-
Before we WRITE our RESPONSE , let's WRITE to our RESPONSE the STATUS LINE and some REPONSE HEADERS. Remember the request line and status line:
3+
Before we WRITE our RESPONSE, let's WRITE to our RESPONSE the STATUS LINE and some RESPONSE HEADERS. Remember the request line and status line:
44

55
REQUEST LINE
66
GET / HTTP/1.1
@@ -22,4 +22,4 @@ fmt.Fprint(c, "Content-Type: text/plain\r\n")
2222

2323
"\r\n"
2424

25-
Look in your browser "developer tools" under the network tab. Compare the RESPONSE HEADERS from the previous file with the RESPONSE HEADERS in your new solution.
25+
Look in your browser "developer tools" under the network tab. Compare the RESPONSE HEADERS from the previous file with the RESPONSE HEADERS in your new solution.

024_hands-on/12_solution/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ func init() {
1414

1515
func main() {
1616
http.HandleFunc("/", index)
17-
http.HandleFunc("/about", about)
18-
http.HandleFunc("/contact", contact)
17+
http.HandleFunc("/about/", about)
18+
http.HandleFunc("/contact/", contact)
1919
http.HandleFunc("/apply", apply)
2020
http.ListenAndServe(":8080", nil)
2121
}

0 commit comments

Comments
 (0)