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: omit empty string/time headers from response #163

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

danielgtaylor
Copy link
Owner

This PR prevents sending empty string/time headers over the wire, improves documentation, and adds a benchmark comparing global vs. inline/lambda handler functions (which turn out to be about equal in performance).

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
huma.go 86.36% <100.00%> (+0.41%) ⬆️

... and 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit 202c91e into main Nov 2, 2023
5 checks passed
@danielgtaylor danielgtaylor deleted the empty-headers branch November 2, 2023 04:35
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.

1 participant