mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-18 16:33:17 +08:00
Merge pull request #6338 from jishudashen/dev
chore: fix inconsistent function name in comment
This commit is contained in:
@@ -157,7 +157,7 @@ func (e *ExecutorOptions) RateLimitTake() {
|
||||
}
|
||||
}
|
||||
|
||||
// GetThreadsForPayloadRequests returns the number of threads to use as default for
|
||||
// GetThreadsForNPayloadRequests returns the number of threads to use as default for
|
||||
// given max-request of payloads
|
||||
func (e *ExecutorOptions) GetThreadsForNPayloadRequests(totalRequests int, currentThreads int) int {
|
||||
if currentThreads > 0 {
|
||||
|
||||
@@ -35,7 +35,7 @@ func UpdateURLPortFromPayload(parsed *urlutil.URL, data string) (*urlutil.URL, s
|
||||
return parsed, data
|
||||
}
|
||||
|
||||
// setHeader sets some headers only if the header wasn't supplied by the user
|
||||
// SetHeader sets some headers only if the header wasn't supplied by the user
|
||||
func SetHeader(req *retryablehttp.Request, name, value string) {
|
||||
if _, ok := req.Header[name]; !ok {
|
||||
req.Header.Set(name, value)
|
||||
|
||||
@@ -46,7 +46,7 @@ type KeyHandler struct {
|
||||
ecdsaKey *ecdsa.PrivateKey
|
||||
}
|
||||
|
||||
// ReadUserCert reads the user certificate from environment variable or given directory
|
||||
// ReadCert reads the user certificate from environment variable or given directory
|
||||
func (k *KeyHandler) ReadCert(envName, dir string) error {
|
||||
// read from env
|
||||
if cert := k.getEnvContent(envName); cert != nil {
|
||||
|
||||
Reference in New Issue
Block a user