mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Replace 'confirming filename' with 'conforming filename'
This commit is contained in:
parent
b80163c35f
commit
ffb29f5ba4
10 changed files with 22 additions and 22 deletions
|
|
@ -47,8 +47,8 @@ func (c *controller) loadCSAF(r *http.Request) (string, []byte, error) {
|
|||
return "", nil, errors.New("expected content type 'application/json'")
|
||||
}
|
||||
|
||||
if !util.ConfirmingFileName(handler.Filename) {
|
||||
return "", nil, errors.New("given csaf filename is not confirming")
|
||||
if !util.ConformingFileName(handler.Filename) {
|
||||
return "", nil, errors.New("given csaf filename is not conforming")
|
||||
}
|
||||
|
||||
var buf bytes.Buffer
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ func (c *controller) bind(pim *pathInfoMux) {
|
|||
pim.handleFunc("/api/create", c.auth(api(c.create)))
|
||||
}
|
||||
|
||||
// authenticate checks if the incoming request confirms with the
|
||||
// authenticate checks if the incoming request conforms with the
|
||||
// configured authentication mechanism.
|
||||
func (c *controller) authenticate(r *http.Request) bool {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue