mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 17:45:28 +00:00
chore: fix some function names in comment
Signed-off-by: threehonor <pengqi@email.cn>
This commit is contained in:
parent
b833bc9963
commit
d1b1c23e4e
@ -48,7 +48,7 @@ func CalculateContentLength(contentLength, bodyLength int64) int64 {
|
||||
return bodyLength
|
||||
}
|
||||
|
||||
// headersToString converts http headers to string
|
||||
// HeadersToString converts http headers to string
|
||||
func HeadersToString(headers http.Header) string {
|
||||
builder := &strings.Builder{}
|
||||
|
||||
|
||||
@ -317,7 +317,7 @@ func (template *Template) MarshalYAML() ([]byte, error) {
|
||||
return out, multierr.Append(marshalErr, errValidate)
|
||||
}
|
||||
|
||||
// MarshalYAML forces recursive struct validation after unmarshal operation
|
||||
// UnmarshalYAML forces recursive struct validation after unmarshal operation
|
||||
func (template *Template) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
||||
type Alias Template
|
||||
alias := &Alias{}
|
||||
@ -475,7 +475,7 @@ func (template *Template) GetFileImports() []string {
|
||||
return template.ImportedFiles
|
||||
}
|
||||
|
||||
// addProtocolsToQueue adds protocol requests to the queue and preserves order of the protocols and requests
|
||||
// addRequestsToQueue adds protocol requests to the queue and preserves order of the protocols and requests
|
||||
func (template *Template) addRequestsToQueue(keys ...string) {
|
||||
for _, key := range keys {
|
||||
switch key {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user