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) {