Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix http: invalid Content-Length of "-1" #97

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

evildao
Copy link
Contributor

@evildao evildao commented Jan 14, 2025

微信截图_20250114092420

When the message is empty, Content-Length returns -1, causing the http library to throw an error log

@codecov-commenter
Copy link

codecov-commenter commented Jan 17, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.62%. Comparing base (ef7d482) to head (dd9de7b).
Report is 40 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
- Coverage   81.35%   76.62%   -4.74%     
==========================================
  Files           3        3              
  Lines         118      154      +36     
==========================================
+ Hits           96      118      +22     
- Misses         19       32      +13     
- Partials        3        4       +1     
Flag Coverage Δ
go- ?
go-1.18 ?
go-1.19 ?
go-1.20 ?
go-1.21 76.62% <100.00%> (-4.74%) ⬇️
go-1.22 76.62% <100.00%> (-4.74%) ⬇️
go-1.23 76.62% <100.00%> (?)
macos-latest ?
ubuntu-latest 76.62% <100.00%> (-4.74%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@appleboy appleboy merged commit 3830b8f into gin-contrib:master Jan 17, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants