Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit c4382a4

Browse files
authored
Merge pull request #25 from TechNobre/main
Deploy nuget v1.1.1
2 parents 2f262f0 + 2881882 commit c4382a4

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33

44

55

6+
## [1.1.1] - 2022-05-30
7+
[Full Changelog](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler/compare/v1.1.0...v1.1.1)
8+
9+
10+
### Fixes
11+
12+
- Fixed validation payload too large;
13+
14+
15+
16+
617
## [1.1.0] - 2022-05-29
718
[Full Changelog](https://github.com/TechNobre/PowerUtils.AspNetCore.ErrorHandler/compare/v1.0.1...v1.1.0)
819

src/ModelStateExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ public static IDictionary<string, string> CheckPayloadTooLargeAndReturnError(thi
3939
.First()
4040
.ToLower();
4141

42-
if("failed to read the request form. multipart body length limit 1048576 exceeded.".Equals(errorMessage))
42+
if(
43+
errorMessage.StartsWith("failed to read the request form. multipart body length limit ")
44+
&&
45+
errorMessage.EndsWith(" exceeded.")
46+
)
4347
{
4448
var maxSize = errorMessage
4549
.Replace("failed to read the request form. multipart body length limit ", "")

src/PowerUtils.AspNetCore.ErrorHandler.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<PackageId>PowerUtils.AspNetCore.ErrorHandler</PackageId>
1919
<title>PowerUtils.AspNetCore.ErrorHandler</title>
2020
<Product>PowerUtils.AspNetCore.ErrorHandler</Product>
21-
<Version>1.1.0</Version>
21+
<Version>1.1.1</Version>
2222

2323
<Authors>Nelson Nobre</Authors>
2424
<Company>TechNobre</Company>

0 commit comments

Comments
 (0)