mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 04:15:24 +00:00
fixing wrong bool condition
This commit is contained in:
parent
8694af971e
commit
fa6b21e9be
@ -74,8 +74,7 @@ func (request *Request) Compile(options *protocols.ExecuterOptions) error {
|
||||
for name, payload := range options.Options.VarsPayload() {
|
||||
payloadStr, ok := payload.(string)
|
||||
// check if inputs contains the payload
|
||||
var hasPayloadName bool
|
||||
if ok && hasPayloadName && fileutil.FileExists(payloadStr) {
|
||||
if ok && fileutil.FileExists(payloadStr) {
|
||||
if request.Payloads == nil {
|
||||
request.Payloads = make(map[string]interface{})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user