mirror of https://github.com/daffainfo/nuclei.git
improved raw requests same header handling
parent
e5d4c7a6d0
commit
1f6b83f312
|
@ -400,7 +400,14 @@ func (r *BulkHTTPRequest) parseRawRequest(request, baseURL string) (*RawRequest,
|
||||||
value = p[1]
|
value = p[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
rawRequest.Headers[key] = value
|
// in case of unsafe requests multiple headers should be accepted
|
||||||
|
// therefore use the full line as key
|
||||||
|
_, found := rawRequest.Headers[key]
|
||||||
|
if r.Unsafe && found {
|
||||||
|
rawRequest.Headers[line] = ""
|
||||||
|
} else {
|
||||||
|
rawRequest.Headers[key] = value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle case with the full http url in path. In that case,
|
// Handle case with the full http url in path. In that case,
|
||||||
|
|
Loading…
Reference in New Issue