From 25dd050e6e1dec487a1da1c58d9032882642a4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mazeau?= Date: Thu, 23 Nov 2023 16:59:40 +0100 Subject: [PATCH] serverless/appsec: set route value to nil when unknown --- pkg/serverless/appsec/httpsec/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/serverless/appsec/httpsec/proxy.go b/pkg/serverless/appsec/httpsec/proxy.go index 9df181808a3d3a..373b49d536dca8 100644 --- a/pkg/serverless/appsec/httpsec/proxy.go +++ b/pkg/serverless/appsec/httpsec/proxy.go @@ -204,7 +204,7 @@ func (lp *ProxyLifecycleProcessor) spanModifier(lastReqId string, chunk *pb.Trac case *events.ALBTargetGroupRequest: makeContext( &ctx, - &event.Path, + nil, &event.Path, event.MultiValueHeaders, event.MultiValueQueryStringParameters, @@ -217,7 +217,7 @@ func (lp *ProxyLifecycleProcessor) spanModifier(lastReqId string, chunk *pb.Trac case *events.LambdaFunctionURLRequest: makeContext( &ctx, - &event.RawPath, + nil, &event.RawPath, toMultiValueMap(event.Headers), toMultiValueMap(event.QueryStringParameters),