From 910dd3aa3181e73b3605b92f5db7768a460721c1 Mon Sep 17 00:00:00 2001 From: Ken Wronkiewicz Date: Mon, 3 Oct 2016 15:30:11 -0700 Subject: [PATCH] Remove unnecessary line from example Review comment: setting the header complicates things. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 3cea354..5f54d48 100644 --- a/README.md +++ b/README.md @@ -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"]) }