From 966f978c820770f84abc72946b3703100872e68a Mon Sep 17 00:00:00 2001 From: koebi Date: Mon, 28 Dec 2015 12:29:15 +0100 Subject: [PATCH] fixes according to comments on #53 --- http.go | 2 +- templates/login.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http.go b/http.go index 0c970da..b958d85 100644 --- a/http.go +++ b/http.go @@ -12,7 +12,7 @@ func (k *Kasse) GetLoginPage(res http.ResponseWriter, req *http.Request) { if err := ExecuteTemplate(res, TemplateInput{Title: "Login", Body: "login.html"}); err != nil { k.log.Println("Could not render template:", err) - http.Error(res, "Internal error", 500) + http.Error(res, "Internal error", http.StatusInternalServerError) return } } diff --git a/templates/login.html b/templates/login.html index ff509f9..c9ed49e 100644 --- a/templates/login.html +++ b/templates/login.html @@ -2,11 +2,11 @@
-
-