Fix handling of value that overflows an int
Closes gh-38146
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user