We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e35e565 commit d691376Copy full SHA for d691376
src/Http/Headers/src/ContentDispositionHeaderValue.cs
@@ -683,9 +683,7 @@ private static string Encode5987(StringSegment input)
683
684
private static void HexEscape(StringBuilder builder, byte b)
685
{
686
- builder.Append('%');
687
- builder.Append(HexUpperChars[(b & 0xf0) >> 4]);
688
- builder.Append(HexUpperChars[b & 0xf]);
+ builder.Append(CultureInfo.InvariantCulture, $"%{HexUpperChars[(b & 0xf0) >> 4]}{HexUpperChars[b & 0xf]}");
689
}
690
691
// Attempt to decode using RFC 5987 encoding.
0 commit comments