You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(catalogd) Don't write to header after checking for Preconditions
`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]>
0 commit comments