mirror of https://github.com/daffainfo/nuclei.git
removing unused options (#565)
parent
78d32b8900
commit
5dde61f0a6
|
@ -52,10 +52,6 @@ type Request struct {
|
|||
Pipeline bool `yaml:"pipeline"`
|
||||
// Specify in order to skip request RFC normalization
|
||||
Unsafe bool `yaml:"unsafe"`
|
||||
// DisableAutoHostname Enable/Disable Host header for unsafe raw requests
|
||||
DisableAutoHostname bool `yaml:"disable-automatic-host-header"`
|
||||
// DisableAutoContentLength Enable/Disable Content-Length header for unsafe raw requests
|
||||
DisableAutoContentLength bool `yaml:"disable-automatic-content-length-header"`
|
||||
// Race determines if all the request have to be attempted at the same time
|
||||
// The minimum number of requests is determined by threads
|
||||
Race bool `yaml:"race"`
|
||||
|
|
|
@ -244,8 +244,6 @@ func (r *Request) executeRequest(reqURL string, request *generatedRequest, dynam
|
|||
hostname = parsed.Hostname()
|
||||
}
|
||||
options := request.original.rawhttpClient.Options
|
||||
options.AutomaticContentLength = !r.DisableAutoContentLength
|
||||
options.AutomaticHostHeader = !r.DisableAutoHostname
|
||||
options.FollowRedirects = r.Redirects
|
||||
options.CustomRawBytes = []byte(request.rawRequest.UnsafeRawBytes)
|
||||
resp, err = request.original.rawhttpClient.DoRawWithOptions(request.rawRequest.Method, reqURL, request.rawRequest.Path, generators.ExpandMapValues(request.rawRequest.Headers), ioutil.NopCloser(strings.NewReader(request.rawRequest.Data)), options)
|
||||
|
|
Loading…
Reference in New Issue