Skip to content

Commit e9bad31

Browse files
authored
Remove superfluous subtraction (#52635)
1 parent 52364da commit e9bad31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/WebUtilities/src/MultipartReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private async Task<Dictionary<string, StringValues>> ReadHeadersAsync(Cancellati
106106
{
107107
int totalSize = 0;
108108
var accumulator = new KeyValueAccumulator();
109-
var line = await _stream.ReadLineAsync(HeadersLengthLimit - totalSize, cancellationToken);
109+
var line = await _stream.ReadLineAsync(HeadersLengthLimit, cancellationToken);
110110
while (!string.IsNullOrEmpty(line))
111111
{
112112
if (HeadersLengthLimit - totalSize < line.Length)

0 commit comments

Comments
 (0)