-
Notifications
You must be signed in to change notification settings - Fork 61
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
🐛 (catalogd) Don't write to header after checking for Preconditions #1710
🐛 (catalogd) Don't write to header after checking for Preconditions #1710
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
aab0229
to
6194070
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1710 +/- ##
==========================================
- Coverage 67.66% 67.64% -0.03%
==========================================
Files 59 59
Lines 4991 4991
==========================================
- Hits 3377 3376 -1
- Misses 1367 1368 +1
Partials 247 247
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hi @anik120 is that rebased with main? |
`checkPreconditions` already writes http.StatusNotModified to the writer. It also writes http.StatusPreconditionFailed in certain cases. Writing again could overwrite the status written by `checkPreconditions`. This PR fixes the issue. Refers [the source](https://cs.opensource.google/go/go/+/master:src/net/http/fs.go;l=271-274) for correct usage. Signed-off-by: Anik Bhattacharjee <[email protected]>
6194070
to
beb5f63
Compare
@camilamacedo86 rebased and pushed, let's see if that solves the problem |
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.
/lgtm
/approve
It shows fine for me 👍
checkPreconditions
already writes http.StatusNotModified to the writer. It also writes http.StatusPreconditionFailed in certain cases. Writing again could overwrite the status written bycheckPreconditions
. This PR fixes the issue.Refers the source for correct usage.
Additionally un-exports previously exported function/variable in the copied code from net/http.
Signed-off-by: Anik Bhattacharjee [email protected]
Description
Reviewer Checklist