Sync shared code from aspnetcore (#85748)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 4 May 2023 15:34:07 +0000 (08:34 -0700)
committerGitHub <noreply@github.com>
Thu, 4 May 2023 15:34:07 +0000 (08:34 -0700)
Co-authored-by: JamesNK <JamesNK@users.noreply.github.com>
src/libraries/Common/src/System/Net/Http/aspnetcore/Http2/Hpack/DynamicTable.cs

index d57242b..821ca75 100644 (file)
@@ -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;