这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

Some transforms may set or update headers, and if the status has already been sent then header updates will fail silently. This ensures the status is sent after the transforms, which has the added benefit of producing non-success status codes if transforms panic or fail.

@codecov
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
huma.go 86.33% <100.00%> (-0.03%) ⬇️

... and 2 files with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@danielgtaylor danielgtaylor merged commit 3130224 into main Nov 6, 2023
@danielgtaylor danielgtaylor deleted the status-after-transform branch November 6, 2023 16:19
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.

2 participants