Skip to content

Commit

Permalink
content type
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Aug 15, 2018
1 parent ed55f32 commit cc00fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=1.54
VERSION=1.55
GOBIN=go
GOGET=$(GOBIN) get
GOINSTALL=$(GOBIN) install
Expand Down
2 changes: 2 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ func getTokenHandler(w http.ResponseWriter, r *http.Request) {
Error: true,
Message: err.Error(),
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusNotFound)
json.NewEncoder(w).Encode(m)
} else {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
json.NewEncoder(w).Encode(query.ToJSON())
}
Expand Down

0 comments on commit cc00fce

Please sign in to comment.