Fix handling of value that overflows an int

Closes gh-38146
This commit is contained in:
Andy Wilkinson
2023-10-31 11:47:14 +00:00
parent 747291c0b7
commit 020c2b364e
2 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ public class ReactiveMultipartAutoConfiguration {
.asInt(DataSize::toBytes)
.to(defaultPartHttpMessageReader::setMaxHeadersSize);
map.from(multipartProperties::getMaxDiskUsagePerPart)
.asInt(DataSize::toBytes)
.as(DataSize::toBytes)
.to(defaultPartHttpMessageReader::setMaxDiskUsagePerPart);
map.from(multipartProperties::getMaxParts).to(defaultPartHttpMessageReader::setMaxParts);
map.from(multipartProperties::getStreaming).to(defaultPartHttpMessageReader::setStreaming);