nuclei/v2/pkg/protocols/http/validate.go
Mzack9999 112762f024
Adding http request validation at compile time (#2193)
* Adding http request validation at compile time

* misc update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-06-22 00:26:06 +05:30

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
}