Skip to content

Commit

Permalink
Sync shared code from aspnetcore (dotnet#85748)
Browse files Browse the repository at this point in the history
Co-authored-by: JamesNK <JamesNK@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and JamesNK committed May 4, 2023
1 parent 1341627 commit 15aa8d3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public ref readonly HeaderField this[int index]
{
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;
Expand Down

0 comments on commit 15aa8d3

Please sign in to comment.