Skip to content

Commit

Permalink
updating user-agent to include project details
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsandeep committed May 26, 2020
1 parent a8bdf5d commit 7adda0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/requests/http-request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7adda0b

Please sign in to comment.