mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-09 22:41:05 +00:00
Set response.bodySize
to 0
if it's negative (#466)
This commit is contained in:
@@ -143,6 +143,10 @@ func (d dissecting) Analyze(item *api.OutputChannelItem, resolvedSource string,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resDetails["bodySize"].(float64) < 0 {
|
||||||
|
resDetails["bodySize"] = 0
|
||||||
|
}
|
||||||
|
|
||||||
if item.Protocol.Version == "2.0" {
|
if item.Protocol.Version == "2.0" {
|
||||||
service = fmt.Sprintf("%s://%s", scheme, authority)
|
service = fmt.Sprintf("%s://%s", scheme, authority)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user