1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-10 20:07:56 +01:00

set MaxResponseContentBufferSize to 5 MB (#1702)

This commit is contained in:
Kyle Spearrin 2021-11-09 11:32:23 -05:00 committed by GitHub
parent 2f0638ce8c
commit f26a235964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<IconResult> GetIconAsync(string domain)