From ab47e3cc999c542a4941e7707e73850a18c7dabd Mon Sep 17 00:00:00 2001 From: Richard Edwards Date: Mon, 9 Sep 2019 20:05:09 +0100 Subject: [PATCH] Fixes --- .../Middleware/FrontEndCompressionMiddleware.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Legacy/src/Umbrella.Legacy.WebUtilities/Middleware/FrontEndCompressionMiddleware.cs b/Legacy/src/Umbrella.Legacy.WebUtilities/Middleware/FrontEndCompressionMiddleware.cs index 2bca681e5..6a5511e01 100644 --- a/Legacy/src/Umbrella.Legacy.WebUtilities/Middleware/FrontEndCompressionMiddleware.cs +++ b/Legacy/src/Umbrella.Legacy.WebUtilities/Middleware/FrontEndCompressionMiddleware.cs @@ -62,7 +62,7 @@ public FrontEndCompressionMiddleware( Guard.ArgumentNotNullOrEmpty(options.FrontEndRootFolderAppRelativePaths, nameof(options.FrontEndRootFolderAppRelativePaths)); Guard.ArgumentNotNullOrEmpty(options.TargetFileExtensions, nameof(options.TargetFileExtensions)); Guard.ArgumentNotNullOrWhiteSpace(options.AcceptEncodingHeaderKey, nameof(options.AcceptEncodingHeaderKey)); - Guard.ArgumentInRange(options.BufferSizeBytes, nameof(options.BufferSizeBytes), 1, 0); + Guard.ArgumentInRange(options.BufferSizeBytes, nameof(options.BufferSizeBytes), 1); options.AcceptEncodingHeaderKey = options.AcceptEncodingHeaderKey.Trim().ToLowerInvariant();