1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Fix code format in cmd/csaf_provider/controller.go

This commit is contained in:
Bernhard Reiter 2022-02-15 18:26:11 +01:00
parent f20a9e2da6
commit dbf52223e9
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554

View file

@ -80,9 +80,9 @@ func (c *controller) auth(
http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden) http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden)
return return
} else { } else {
hash := r.Header.Get("X-CSAF-PROVIDER-AUTH") hash := r.Header.Get("X-CSAF-PROVIDER-AUTH")
if !c.cfg.checkPassword(hash) { if !c.cfg.checkPassword(hash) {
http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden) http.Error(rw, http.StatusText(http.StatusForbidden), http.StatusForbidden)
return return
} }
} }