mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 18:40:07 +08:00
update golangci-lint (#328)
This commit is contained in:
@@ -1052,7 +1052,7 @@ func TestServerAuth(t *testing.T) {
|
||||
onAnnounce: func(ctx *ServerHandlerOnAnnounceCtx) (*base.Response, error) {
|
||||
err := auth.Validate(ctx.Request, "myuser", "mypass", nil, nil, "IPCAM", nonce)
|
||||
if err != nil {
|
||||
return &base.Response{
|
||||
return &base.Response{ //nolint:nilerr
|
||||
StatusCode: base.StatusUnauthorized,
|
||||
Header: base.Header{
|
||||
"WWW-Authenticate": auth.GenerateWWWAuthenticate(nil, "IPCAM", nonce),
|
||||
|
Reference in New Issue
Block a user