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:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2022-11-09 19:55:35 +0300
committerGitHub <noreply@github.com>2022-11-09 19:55:35 +0300
commitc3438e04bbee1fb7890381113c8fbc810bcbeb35 (patch)
treead28710b12544f57edd68602a64c6d9bd32f8dd9
parenta24dd9e870bf713487e5cca46075ff3ee2c3ddc8 (diff)
Sync shared code from runtime (#44964)
-rw-r--r--src/Shared/runtime/Http3/QPack/QPackDecoder.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
index 394cc1aee7..47fc89aaa5 100644
--- a/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
+++ b/src/Shared/runtime/Http3/QPack/QPackDecoder.cs
@@ -223,10 +223,10 @@ namespace System.Net.Http.QPack
ParseHeaderValue(data, ref currentIndex, handler);
break;
case State.PostBaseIndex:
- ParsePostBaseIndex(data, ref currentIndex, handler);
+ ParsePostBaseIndex(data, ref currentIndex);
break;
case State.HeaderNameIndexPostBase:
- ParseHeaderNameIndexPostBase(data, ref currentIndex, handler);
+ ParseHeaderNameIndexPostBase(data, ref currentIndex);
break;
default:
// Can't happen
@@ -253,7 +253,7 @@ namespace System.Net.Http.QPack
}
}
- private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
+ private void ParseHeaderNameIndexPostBase(ReadOnlySpan<byte> data, ref int currentIndex)
{
if (TryDecodeInteger(data, ref currentIndex, out int intResult))
{
@@ -261,11 +261,11 @@ namespace System.Net.Http.QPack
}
}
- private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex, IHttpStreamHeadersHandler handler)
+ private void ParsePostBaseIndex(ReadOnlySpan<byte> data, ref int currentIndex)
{
- if (TryDecodeInteger(data, ref currentIndex, out int intResult))
+ if (TryDecodeInteger(data, ref currentIndex, out _))
{
- OnPostBaseIndex(intResult, handler);
+ OnPostBaseIndex();
}
}
@@ -494,14 +494,14 @@ namespace System.Net.Http.QPack
break;
case 3: // Indexed Header Field With Post-Base Index
prefixInt = ~PostBaseIndexMask & b;
- if (_integerDecoder.BeginTryDecode((byte)prefixInt, PostBaseIndexPrefix, out intResult))
+ if (_integerDecoder.BeginTryDecode((byte)prefixInt, PostBaseIndexPrefix, out _))
{
- OnPostBaseIndex(intResult, handler);
+ OnPostBaseIndex();
}
else
{
_state = State.PostBaseIndex;
- ParsePostBaseIndex(data, ref currentIndex, handler);
+ ParsePostBaseIndex(data, ref currentIndex);
}
break;
default: // Literal Header Field With Post-Base Name Reference (at least 4 zeroes, maybe more)
@@ -513,7 +513,7 @@ namespace System.Net.Http.QPack
else
{
_state = State.HeaderNameIndexPostBase;
- ParseHeaderNameIndexPostBase(data, ref currentIndex, handler);
+ ParseHeaderNameIndexPostBase(data, ref currentIndex);
}
break;
}
@@ -710,7 +710,7 @@ namespace System.Net.Http.QPack
_state = State.HeaderValueLength;
}
- private static void OnIndexedHeaderNamePostBase(int index)
+ private static void OnIndexedHeaderNamePostBase(int _ /*index*/)
{
ThrowDynamicTableNotSupported();
// TODO update with postbase index
@@ -718,7 +718,7 @@ namespace System.Net.Http.QPack
// _state = State.HeaderValueLength;
}
- private static void OnPostBaseIndex(int intResult, IHttpStreamHeadersHandler handler)
+ private static void OnPostBaseIndex()
{
ThrowDynamicTableNotSupported();
// TODO