Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
ghacache: HTTP 200 is also a good status
Browse files Browse the repository at this point in the history
  • Loading branch information
edigaryev committed Mar 27, 2024
1 parent 0a442b7 commit 7cbd348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http_cache/ghacache/ghacache.go
Expand Up @@ -206,7 +206,7 @@ func (cache *GHACache) commitUploadable(writer http.ResponseWriter, request *htt
return
}

if resp.StatusCode != http.StatusCreated {
if !(resp.StatusCode == http.StatusOK || resp.StatusCode == http.StatusCreated) {
fail(writer, request, http.StatusInternalServerError, "GHA cache failed to "+
"upload the uploadable with ID %d: got HTTP %d", id, resp.StatusCode)

Expand Down

0 comments on commit 7cbd348

Please sign in to comment.