Skip to content

Commit f322930

Browse files
author
ladeak
committed
Remove unneeded span
1 parent f93cadf commit f322930

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Http/Headers/src/ContentDispositionHeaderValue.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,9 @@ private static string Encode5987(StringSegment input)
656656
length = inputBytes.Length;
657657
}
658658

659-
var toHexEscape = inputBytes.Slice(0, length);
660-
for (int i = 0; i < toHexEscape.Length; i++)
659+
for (int i = 0; i < length; i++)
661660
{
662-
HexEscape(builder, toHexEscape[i]);
661+
HexEscape(builder, inputBytes[i]);
663662
}
664663

665664
inputBytes = inputBytes.Slice(length);

0 commit comments

Comments
 (0)