From dbf52223e93de608b61558e604f01cc7e2a7c74c Mon Sep 17 00:00:00 2001 From: Bernhard Reiter Date: Tue, 15 Feb 2022 18:26:11 +0100 Subject: [PATCH] Fix code format in cmd/csaf_provider/controller.go --- cmd/csaf_provider/controller.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/csaf_provider/controller.go b/cmd/csaf_provider/controller.go index 8d54e52..081b1bf 100644 --- a/cmd/csaf_provider/controller.go +++ b/cmd/csaf_provider/controller.go @@ -80,9 +80,9 @@ func (c *controller) auth( http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden) return } else { - hash := r.Header.Get("X-CSAF-PROVIDER-AUTH") - if !c.cfg.checkPassword(hash) { - http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden) + hash := r.Header.Get("X-CSAF-PROVIDER-AUTH") + if !c.cfg.checkPassword(hash) { + http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden) return } }