mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:05:29 +00:00
* Adding http request validation at compile time * misc update Co-authored-by: sandeep <sandeep@projectdiscovery.io>
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
|
|
}
|