[appsec] delete api key header before processing the request (#2890)
This commit is contained in:
parent
6c042f18f0
commit
742f5e8cda
1 changed files with 1 additions and 0 deletions
|
@ -320,6 +320,7 @@ func NewParsedRequestFromRequest(r *http.Request, logger *logrus.Entry) (ParsedR
|
|||
delete(r.Header, URIHeaderName)
|
||||
delete(r.Header, VerbHeaderName)
|
||||
delete(r.Header, UserAgentHeaderName)
|
||||
delete(r.Header, APIKeyHeaderName)
|
||||
|
||||
originalHTTPRequest := r.Clone(r.Context())
|
||||
originalHTTPRequest.Body = io.NopCloser(bytes.NewBuffer(body))
|
||||
|
|
Loading…
Reference in a new issue