Logo
Explore Help
Register Sign In
External/nuclei
1
0
Fork 0
You've already forked nuclei
mirror of https://github.com/projectdiscovery/nuclei.git synced 2025-12-18 15:55:22 +00:00
Code Issues Packages Projects Releases Wiki Activity
nuclei/v2/pkg/protocols/http/validate.go

16 lines
355 B
Go
Raw Normal View History

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-21 20:56:06 +02:00
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")
}
Adding same host redirect support (#2655) * 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
2022-09-29 00:41:28 +02:00
if request.Redirects && request.HostRedirects {
return errors.New("'redirects' and 'host-redirects' can't be used together")
}
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-21 20:56:06 +02:00
return nil
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.6 Page: 301ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API