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 issue introduced in http-parser -> llhttp conversion #140

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

sergio-correia
Copy link
Collaborator

http_parser_execute() returns the number of parsed bytes, while llhttp_execute() returns an error code.

@codecov-commenter
Copy link

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (4b7656b) 58.77% compared to head (614149a) 58.65%.

Files Patch % Lines
src/tangd.c 50.00% 4 Missing and 1 partial ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #140      +/-   ##
==========================================
- Coverage   58.77%   58.65%   -0.13%     
==========================================
  Files           4        4              
  Lines         570      578       +8     
  Branches      147      147              
==========================================
+ Hits          335      339       +4     
- Misses        134      138       +4     
  Partials      101      101              

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

src/http.h Outdated Show resolved Hide resolved
src/tangd.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use tang_ prefix instead of git_ one

http_parser_execute() returns the number of parsed bytes, while
llhttp_execute() returns an error code.

Signed-off-by: Sergio Correia <scorreia@redhat.com>
@sergio-correia
Copy link
Collaborator Author

Use tang_ prefix instead of git_ one

Done, thanks for checking.

Copy link
Collaborator

@sarroutbi sarroutbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM

@sergio-correia sergio-correia merged commit 819970c into latchset:master Feb 12, 2024
14 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