Skip to content

Commit

Permalink
refactor: Updating httputils usage for new version
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Mar 28, 2021
1 parent 35b0a52 commit e60f475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hello/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ func Handler(config Config) http.Handler {
name = "World"
}

httpjson.ResponseJSON(w, http.StatusOK, Hello{fmt.Sprintf("Hello %s, current time in %s is %v !", name, location.String(), time.Now().In(location))}, httpjson.IsPretty(r))
httpjson.Write(w, http.StatusOK, Hello{fmt.Sprintf("Hello %s, current time in %s is %v !", name, location.String(), time.Now().In(location))}, httpjson.IsPretty(r))
})
}

0 comments on commit e60f475

Please sign in to comment.