Merge pull request #93 from bauthard/master

updating user-agent to include project details
dev
bauthard 2020-05-26 13:57:29 +05:30 committed by GitHub
commit 051309c9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ func (r *HTTPRequest) fillRequest(req *http.Request, values map[string]interface
// Set some headers only if the header wasn't supplied by the user
if _, ok := req.Header["User-Agent"]; !ok {
req.Header.Set("User-Agent", "Nuclei (@pdiscoveryio)")
req.Header.Set("User-Agent", "Nuclei - Open-source project (github.com/projectdiscovery/nuclei)")
}
if _, ok := req.Header["Accept"]; !ok {