From 1a851a10545c6afadbaca2fe24552d0b0e1c3b9b Mon Sep 17 00:00:00 2001 From: Matas Date: Fri, 8 Nov 2019 15:19:07 +0200 Subject: [PATCH] fix --- internal/controller/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/controller.go b/internal/controller/controller.go index 165e423..196fde5 100644 --- a/internal/controller/controller.go +++ b/internal/controller/controller.go @@ -11,8 +11,8 @@ import ( func Sha256Handler(w http.ResponseWriter, r *http.Request) { username := mux.Vars(r)["username"] h, _ := hashes.GetHash("Sha256", username) - fmt.Fprint(w, h) w.WriteHeader(http.StatusOK) + fmt.Fprint(w, h) } func GithubUsernameHandler(w http.ResponseWriter, r *http.Request) {