From 15aa8d39154b2167002cb33617accf4a52a802c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 08:34:07 -0700 Subject: [PATCH] Sync shared code from aspnetcore (#85748) Co-authored-by: JamesNK --- .../Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs b/src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs index d57242b..821ca75 100644 --- a/src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs +++ b/src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs @@ -30,7 +30,10 @@ namespace System.Net.Http.HPack { if (index >= _count) { +#pragma warning disable CA2201 // Do not raise reserved exception types + // Helpful to act like static table (array) throw new IndexOutOfRangeException(); +#pragma warning restore CA2201 } index = _insertIndex - index - 1; -- 2.7.4