Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
58a1eac2
Unverified
Commit
58a1eac2
authored
3 years ago
by
M. Mert Yıldıran
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Set `response.bodySize` to `0` if it's negative (#466)
parent
ad574956
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tap/extensions/http/main.go
+4
-0
tap/extensions/http/main.go
with
4 additions
and
0 deletions
+4
-0
tap/extensions/http/main.go
+
4
-
0
View file @
58a1eac2
...
...
@@ -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"
{
service
=
fmt
.
Sprintf
(
"%s://%s"
,
scheme
,
authority
)
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help