From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 15:34:07 +0000 (-0700) Subject: Sync shared code from aspnetcore (#85748) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~2444 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15aa8d39154b2167002cb33617accf4a52a802c2;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Sync shared code from aspnetcore (#85748) Co-authored-by: JamesNK --- 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;