Browse Source

Remove unnecessary line from example

Review comment: setting the header complicates things.
pull/199/head
Ken Wronkiewicz 9 years ago
parent
commit
910dd3aa31
  1. 1
      README.md

1
README.md

@ -67,7 +67,6 @@ The names are used to create a map of route variables which can be retrieved cal @@ -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"])
}

Loading…
Cancel
Save