curielogger: list of names values back to maps
@@ -137,9 +137,9 @@ type RequestData struct {
BodyBytes uint64 `json:"bodybytes"`
HeadersBytes uint64 `json:"headersbytes"`
OriginalPath string `json:"originalpath"`
- Headers []NameValue `json:"headers"`
- Cookies []NameValue `json:"cookies"`
- Arguments []NameValue `json:"arguments"`
+ Headers map[string]string `json:"headers"`
+ Cookies map[string]string `json:"cookies"`
+ Arguments map[string]string `json:"arguments"`
Attributes AttributesData `json:"attributes"`
}
@@ -913,9 +913,9 @@ func (s grpcServerParams) StreamAccessLogs(x als.AccessLogService_StreamAccessLo
BodyBytes: req.GetRequestBodyBytes(),
HeadersBytes: req.GetRequestHeadersBytes(),
OriginalPath: req.GetOriginalPath(),
- Headers: MapToNameValue(curieProxyLog.Headers),
- Cookies: MapToNameValue(curieProxyLog.Cookies),
- Arguments: MapToNameValue(curieProxyLog.Arguments),
+ Headers: curieProxyLog.Headers,
+ Cookies: curieProxyLog.Cookies,
+ Arguments: curieProxyLog.Arguments,
Attributes: curieProxyLog.Attributes,
},
Response: ResponseData{
