Skip to content

Commit

Permalink
in apiutil/responses.go, change jsonMarshalIndent to jsonMarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed May 8, 2018
1 parent c759d01 commit 438f31f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiutil/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func WriteErrResponse(w http.ResponseWriter, code int, err error) error {
}

func jsonResponse(w http.ResponseWriter, env interface{}) error {
res, err := json.MarshalIndent(env, "", " ")
res, err := json.Marshal(env)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return err
Expand Down

0 comments on commit 438f31f

Please sign in to comment.