Collapse AsSpan().Slice(..) into AsSpan(..) (#2491)

This commit is contained in:
Ahson Khan 2018-04-12 23:33:47 -07:00 committed by David Fowler
parent 10f3b6863e
commit d57da6b71f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
{
lock (s_headerBytesScratch)
{
if (!Utf8Formatter.TryFormat(value, s_headerBytesScratch.AsSpan().Slice(prefixLength), out int written, 'R'))
if (!Utf8Formatter.TryFormat(value, s_headerBytesScratch.AsSpan(prefixLength), out int written, 'R'))
{
throw new Exception("date time format failed");
}