rhysd / go-github-selfupdate

Binary self-update mechanism for Go commands using GitHub
https://godoc.org/github.com/rhysd/go-github-selfupdate/selfupdate
MIT License
597 stars 76 forks source link

Redirect is not supported #7

Closed rhysd closed 6 years ago

rhysd commented 6 years ago

go-github-selfupdate only checks if the status is 200 or not. So 302 is not handled. Actually redirect may occur when repository is moved after the release was made public.

rhysd commented 6 years ago

Go's http.Get supports redirect. So this is not the case. I may add a test case to ensure that redirect works.