Skip to content

Commit 37ed8ed

Browse files
authored
Allow bigger responses from GitHub (#301)
1 parent 0bd1094 commit 37ed8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

githubauth/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func (g *App) githubAccessToken(ctx context.Context, requestJSON []byte) (string
292292
}
293293
defer res.Body.Close()
294294

295-
b, err := io.ReadAll(io.LimitReader(res.Body, 64_000))
295+
b, err := io.ReadAll(io.LimitReader(res.Body, 4_194_304)) // 4 MiB
296296
if err != nil {
297297
return "", fmt.Errorf("failed to read response body: %w", err)
298298
}

0 commit comments

Comments
 (0)