🐛 (catalogd) Don't write to header after checking for Preconditions by anik120 · Pull Request #1710 · operator-framework/operator-controller
`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 <anbhatta@redhat.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters