Skip to content

Commit

Permalink
fix read char length from github (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyamachi authored Jun 8, 2021
1 parent 145bc26 commit e58b90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var versionPattern = regexp.MustCompile(`v[0-9]+\.[0-9]+\.[0-9]+`)

// Dockertags just want to check latest version string. No need to readall.
const enoughLength = 8000
const enoughLength = 16000

func fetchURL(ctx context.Context, url string, cookie *http.Cookie, dataLen int) ([]byte, error) {
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
Expand Down

0 comments on commit e58b90e

Please sign in to comment.