mirror of
https://github.com/RRQM/TouchSocket.git
synced 2025-12-18 01:16:44 +08:00
发布:3.1.15
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<Project>
|
<Project>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<BaseVersion>3.1.14</BaseVersion>
|
<BaseVersion>3.1.15</BaseVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
||||||
<TouchSocketVersion>$(BaseVersion)</TouchSocketVersion>
|
<TouchSocketVersion>$(BaseVersion)</TouchSocketVersion>
|
||||||
|
|||||||
@@ -130,11 +130,12 @@ public abstract class HttpBase : IRequestInfo
|
|||||||
|
|
||||||
internal bool ParsingHeader<TByteBlock>(ref TByteBlock byteBlock) where TByteBlock : IByteBlock
|
internal bool ParsingHeader<TByteBlock>(ref TByteBlock byteBlock) where TByteBlock : IByteBlock
|
||||||
{
|
{
|
||||||
var index = byteBlock.Span.Slice(byteBlock.Position).IndexOf(StringExtension.Default_RNRN_Utf8Span);
|
var unreadSpan = byteBlock.Span.Slice(byteBlock.Position);
|
||||||
|
var index = unreadSpan.IndexOf(StringExtension.Default_RNRN_Utf8Span);
|
||||||
if (index > 0)
|
if (index > 0)
|
||||||
{
|
{
|
||||||
var headerLength = index - byteBlock.Position + 2;
|
var headerLength = index + 2;
|
||||||
this.ReadHeaders(byteBlock.Span.Slice(byteBlock.Position, headerLength));
|
this.ReadHeaders(unreadSpan.Slice(0, headerLength));
|
||||||
byteBlock.Position += headerLength;
|
byteBlock.Position += headerLength;
|
||||||
byteBlock.Position += 2;
|
byteBlock.Position += 2;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user