From f26a235964e2ee9aba9edd38de1d57d290fd92ae Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 9 Nov 2021 11:32:23 -0500 Subject: [PATCH] set MaxResponseContentBufferSize to 5 MB (#1702) --- src/Icons/Services/IconFetchingService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Icons/Services/IconFetchingService.cs b/src/Icons/Services/IconFetchingService.cs index 96aabbc2b7..181ab4edba 100644 --- a/src/Icons/Services/IconFetchingService.cs +++ b/src/Icons/Services/IconFetchingService.cs @@ -53,6 +53,7 @@ namespace Bit.Icons.Services AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate, }); _httpClient.Timeout = TimeSpan.FromSeconds(20); + _httpClient.MaxResponseContentBufferSize = 5000000; // 5 MB } public async Task GetIconAsync(string domain)