mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 00:25:26 +00:00
12 lines
223 B
Go
12 lines
223 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")
|
||
|
|
}
|
||
|
|
|
||
|
|
return nil
|
||
|
|
}
|