mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Fix code format in cmd/csaf_provider/controller.go
This commit is contained in:
parent
f20a9e2da6
commit
dbf52223e9
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue