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 f17a9f7 commit 986aad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http_cache/ghacache/ghacache.go
Expand Up @@ -195,7 +195,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) {
log.Printf("GHA cache failed to upload the uploadable with ID %d: got HTTP %d\n",
id, resp.StatusCode)
writer.WriteHeader(http.StatusInternalServerError)
Expand Down

0 comments on commit 986aad4

Please sign in to comment.