Skip to content

Commit 4ce3d77

Browse files
committed
github-releases: no need to explicitly check 302
http.Client will handle that for us.
1 parent 399ee14 commit 4ce3d77

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/objects/github.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ func (s *GithubReleaseSource) GetFile(path string, requestHeaders schwift.Object
214214
}
215215

216216
if resp.StatusCode != http.StatusOK &&
217-
resp.StatusCode != http.StatusFound && // as per GitHub docs, clients should also handle 302 response
218217
resp.StatusCode != http.StatusNotModified {
219218
return nil, FileState{}, fmt.Errorf(
220219
"skipping %s: GET returned unexpected status code: expected one of [200, 302, 304] but got %d",

0 commit comments

Comments
 (0)