forked from TrueCloudLab/frostfs-s3-gw
[#65] Allow no sign requests
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
12b92a31c6
commit
8185b71462
3 changed files with 13 additions and 12 deletions
|
@ -70,7 +70,7 @@ func (c *center) Authenticate(r *http.Request) (*token.BearerToken, error) {
|
|||
|
||||
authHeaderField := r.Header["Authorization"]
|
||||
if len(authHeaderField) != 1 {
|
||||
return nil, errors.New("unsupported request: wrong length of Authorization header field")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
sms1 := c.reg.getSubmatches(authHeaderField[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue