-
Notifications
You must be signed in to change notification settings - Fork 43
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
chore: fixes short write error. #107
Conversation
So we have to define what to do here. The test fails as: https://github.com/corazawaf/coraza-caddy/actions/runs/7002992650/job/19047820525#step:6:89
This is because before we were returning a content-length but the actual response body was empty (due to interruption) but caddy was returning |
What is the client receiving now that caddy is returning an error? Should we make the e2e-tester more error-tolerant? |
I think we should not fail because this is a legit request, we should just deny it. |
…dy does not fail as per caddyserver/caddy#5952.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
PTAL @M4tteoP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! And it is actually an approach that we already used #96 (comment).
The interceptor was originally copied from coraza upstream ( https://github.com/corazawaf/coraza/blob/main/http/interceptor.go), can these changes also be ported upstream? Also, vice-versa, we have corazawaf/coraza#923, corazawaf/coraza#925
#923 I dont know but I am tempted to say yes #925 indeed, do you mind
porting it?
…On Mon, 27 Nov 2023, 23:46 Matteo Pace, ***@***.***> wrote:
***@***.**** approved this pull request.
Looks good to me! And it is actually an approach that we already used #96
(comment)
<#96 (comment)>
.
The interceptor was originally copied from coraza upstream (
https://github.com/corazawaf/coraza/blob/main/http/interceptor.go), can
this changes also be ported upstream? Also, vice-versa, we have
corazawaf/coraza#923 <corazawaf/coraza#923>,
corazawaf/coraza#925 <corazawaf/coraza#925>
—
Reply to this email directly, view it on GitHub
<#107 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYAUCSRJY7XTC3FATTPTYGUJ2XAVCNFSM6AAAAAA74EDZDKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONJRGU2TKMJVGQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Related caddyserver/caddy#5952 (comment)