github.com/projectdiscovery/nuclei/v2@v2.9.15/pkg/protocols/http/validate.go (about) 1 package http 2 3 import "github.com/pkg/errors" 4 5 func (request *Request) validate() error { 6 if request.Race && request.NeedsRequestCondition() { 7 return errors.New("'race' and 'req-condition' can't be used together") 8 } 9 10 if request.Redirects && request.HostRedirects { 11 return errors.New("'redirects' and 'host-redirects' can't be used together") 12 } 13 14 return nil 15 }