mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 14:25:25 +00:00
* simplifying test syntax * adding same host redirect + refactoring redirect handling * adding missing file * adding support for template syntax * adding integration test * updating options * fixing issue on same host redirect
16 lines
355 B
Go
16 lines
355 B
Go
package http
|
|
|
|
import "github.com/pkg/errors"
|
|
|
|
func (request *Request) validate() error {
|
|
if request.Race && request.ReqCondition {
|
|
return errors.New("'race' and 'req-condition' can't be used together")
|
|
}
|
|
|
|
if request.Redirects && request.HostRedirects {
|
|
return errors.New("'redirects' and 'host-redirects' can't be used together")
|
|
}
|
|
|
|
return nil
|
|
}
|