From f6e5e74d9551df57effda19c856352608374cee7 Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sat, 18 Mar 2017 15:42:01 -0700 Subject: [PATCH] Update packages (#1509) * Update packages * React to API changes in corefxlab --- build/dependencies.props | 4 ++-- .../Internal/Http/KestrelHttpParser.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/dependencies.props b/build/dependencies.props index 74d0c3c23b..cc4fbc7fdc 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -1,8 +1,8 @@ 1.2.0-* - 0.1.0-e170313-1 - 0.1.0-e170313-1 + 0.1.0-* + 0.1.0-* 4.3.0 1.9.1 9.0.1 diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/KestrelHttpParser.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/KestrelHttpParser.cs index 71a49c2f45..e76515b042 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/KestrelHttpParser.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/KestrelHttpParser.cs @@ -36,7 +36,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http // Prepare the first span var span = buffer.First.Span; - var lineIndex = span.IndexOfVectorized(ByteLF); + var lineIndex = span.SequentialIndexOf(ByteLF); if (lineIndex >= 0) { consumed = buffer.Move(consumed, lineIndex + 1); @@ -255,7 +255,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http index = reader.Index; } - var endIndex = new Span(pBuffer + index, remaining).IndexOfVectorized(ByteLF); + var endIndex = new Span(pBuffer + index, remaining).SequentialIndexOf(ByteLF); var length = 0; if (endIndex != -1)