1
0
mirror of synced 2024-11-22 04:56:06 +03:00

increase limit of response body

This commit is contained in:
Ruslan Efanov 2023-09-01 15:08:41 +03:00
parent b47f23f524
commit 038535ea9a

View File

@ -8,7 +8,7 @@ import (
) )
const MB = 1 << 20 const MB = 1 << 20
const LimitResponse = 3 * MB const LimitResponse = 25 * MB
func buildLimitedRawResponse(resp *http.Response) ([]byte, error) { func buildLimitedRawResponse(resp *http.Response) ([]byte, error) {
defer resp.Body.Close() defer resp.Body.Close()