Repository: jesseduffield/lazygit (language: go)

Issue:
Updater broken due to GitHub redirection
**Describe the bug**
When i try to upgrade my Lazygit form 0.28.1 to 0.29 via `Check for update` i get this error:
```
Could not find any binary at https://github.com/jesseduffield/lazygit/releases/download/v0.29/lazygit_0.29_Linux_x86_64.tar.gz
```

I think is related to Github making a redirect to another domain, this is the output of `wget`:
```
--2021-08-24 09:26:33--  https://github.com/jesseduffield/lazygit/releases/download/v0.29/lazygit_0.29_Linux_x86_64.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-releases.githubusercontent.com/134017286/0894f4e6-3e5a-4c9c-b2c8-0d6ad22ac53d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210824%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210824T072634Z&X-Amz-Expires=300&X-Amz-Signature=24b163587476a7eee6b8ad9070b051092e4f300308343c5145d299a81e3e4562&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=134017286&response-content-disposition=attachment%3B%20filename%3Dlazygit_0.29_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2021-08-24 09:26:34--  https://github-releases.githubusercontent.com/134017286/0894f4e6-3e5a-4c9c-b2c8-0d6ad22ac53d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210824%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210824T072634Z&X-Amz-Expires=300&X-Amz-Signature=24b163587476a7eee6b8ad9070b051092e4f300308343c5145d299a81e3e4562&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=134017286&response-content-disposition=attachment%3B%20filename%3Dlazygit_0.29_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream
Resolving github-releases.githubusercontent.com (github-releases.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8001::154, 2606:50c0:8000::154, ...
Connecting to github-releases.githubusercontent.com (github-releases.githubusercontent.com)|2606:50c0:8003::154|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4807511 (4,6M) [application/octet-stream]
Saving to: ‘lazygit_0.29_Linux_x86_64.tar.gz’
```
We can see that we are redirected to `github-releases.githubusercontent.com` with a 302 status code.

**To Reproduce**
Steps to reproduce the behavior:
1. Download Lazygit 0.28.1 or older
2. Check for update...


**Expected behavior**
Lazygit should follow the redirect.


**Desktop (please complete the following information):**
 - OS: Linux (Ubuntu)
 - Lazygit Version : 0.28.1 or older

**Additional context**
Add any other context about the problem here.



Discussion / hints:
I hit the same error (though for other software), seems like the ipv6 address doesn't respond, only the ipv4

Fix patch:
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go
index 95fcfa0ebc8..58c93fa7dbc 100644
--- a/pkg/updates/updates.go
+++ b/pkg/updates/updates.go
@@ -329,7 +329,6 @@ func (u *Updater) verifyResourceFound(rawUrl string) bool {
 	}
 	defer resp.Body.Close()
 	u.Log.Info("Received status code ", resp.StatusCode)
-	// 403 means the resource is there (not going to bother adding extra request headers)
-	// 404 means its not
-	return resp.StatusCode == 403
+	// OK (200) indicates that the resource is present.
+	return resp.StatusCode == http.StatusOK
 }


Test patch: