forked from security/hakurei
internal/pkg: set User-Agent header
Avoid living under the default user agent and be at the mercy of some IDS. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -78,6 +78,7 @@ func (a *httpArtifact) Cure(r *RContext) (rc io.ReadCloser, err error) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
req.Header.Set("User-Agent", "Hakurei/1.1")
|
||||
|
||||
var resp *http.Response
|
||||
if resp, err = a.doFunc(req); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user