Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs')
-rw-r--r--src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs b/src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs
index 09c2d74265..70fa7f00b3 100644
--- a/src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs
+++ b/src/Servers/Kestrel/Core/src/Internal/Infrastructure/HttpUtilities.cs
@@ -195,7 +195,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure
}
}
- private static unsafe string GetLatin1StringNonNullCharacters(this Span<byte> span)
+ private static unsafe string GetLatin1StringNonNullCharacters(this ReadOnlySpan<byte> span)
{
if (span.IsEmpty)
{
@@ -218,7 +218,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure
return resultString;
}
- public static string GetRequestHeaderStringNonNullCharacters(this Span<byte> span, bool useLatin1) =>
+ public static string GetRequestHeaderStringNonNullCharacters(this ReadOnlySpan<byte> span, bool useLatin1) =>
useLatin1 ? GetLatin1StringNonNullCharacters(span) : GetAsciiOrUTF8StringNonNullCharacters(span);
public static string GetAsciiStringEscaped(this Span<byte> span, int maxChars)