mirror of https://github.com/daffainfo/nuclei.git
improved raw requests same header handling
parent
e5d4c7a6d0
commit
1f6b83f312
|
@ -400,8 +400,15 @@ func (r *BulkHTTPRequest) parseRawRequest(request, baseURL string) (*RawRequest,
|
||||||
value = p[1]
|
value = p[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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
|
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,
|
||||||
// ignore any host header that we encounter and use the path as request URL
|
// ignore any host header that we encounter and use the path as request URL
|
||||||
|
|
Loading…
Reference in New Issue