Remove unnecessary line from example

Review comment: setting the header complicates things.
This commit is contained in:
Ken Wronkiewicz
2016-10-03 15:30:11 -07:00
parent 239e05fe53
commit 910dd3aa31

View File

@@ -67,7 +67,6 @@ The names are used to create a map of route variables which can be retrieved cal
```go
func ArticlesCategoryHandler(w http.ResponseWriter, r *http.Request) {
vars := mux.Vars(r)
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, "Category: %v\n", vars["category"])
}