Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 9fcf9c1

Browse files
author
John Luo
committed
consolidate
1 parent 3b0adaa commit 9fcf9c1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/Kestrel.Core/Http2Limits.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
5-
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http2;
65

76
namespace Microsoft.AspNetCore.Server.Kestrel.Core
87
{

src/Kestrel.Core/Internal/Http2/Http2Frame.Continuation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public Http2ContinuationFrameFlags ContinuationFlags
2121

2222
public void PrepareContinuation(Http2ContinuationFrameFlags flags, int streamId)
2323
{
24-
PayloadLength = (int)_maxFrameSize - HeaderLength;
24+
PayloadLength = (int)_maxFrameSize;
2525
Type = Http2FrameType.CONTINUATION;
2626
ContinuationFlags = flags;
2727
StreamId = streamId;

src/Kestrel.Core/Internal/Http2/Http2Frame.Headers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public byte HeadersPriorityWeight
6464

6565
public void PrepareHeaders(Http2HeadersFrameFlags flags, int streamId)
6666
{
67-
PayloadLength = (int)_maxFrameSize - HeaderLength;
67+
PayloadLength = (int)_maxFrameSize;
6868
Type = Http2FrameType.HEADERS;
6969
HeadersFlags = flags;
7070
StreamId = streamId;

0 commit comments

Comments
 (0)