Skip to content

Commit 910dd3a

Browse files
author
Ken Wronkiewicz
committed
Remove unnecessary line from example
Review comment: setting the header complicates things.
1 parent 239e05f commit 910dd3a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ The names are used to create a map of route variables which can be retrieved cal
6767
```go
6868
func ArticlesCategoryHandler(w http.ResponseWriter, r *http.Request) {
6969
vars := mux.Vars(r)
70-
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
7170
w.WriteHeader(http.StatusOK)
7271
fmt.Fprintf(w, "Category: %v\n", vars["category"])
7372
}

0 commit comments

Comments
 (0)