mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
parent
52995b8fa4
commit
71a253aea6
1 changed files with 2 additions and 1 deletions
|
@ -331,8 +331,9 @@ func NewParsedRequestFromRequest(r *http.Request, logger *log.Entry) (ParsedRequ
|
|||
originalHTTPRequest.Header.Set("User-Agent", userAgent)
|
||||
r.Header.Set("User-Agent", userAgent) //Override the UA in the original request, as this is what will be used by the waf engine
|
||||
} else {
|
||||
//If we don't have a forwarded UA, delete the one that was set by the bouncer
|
||||
//If we don't have a forwarded UA, delete the one that was set by the remediation in both original and incoming
|
||||
originalHTTPRequest.Header.Del("User-Agent")
|
||||
r.Header.Del("User-Agent")
|
||||
}
|
||||
|
||||
parsedURL, err := url.Parse(clientURI)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue