Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Throw IGNORE for HTTP/2 only
  • Loading branch information
alnikola authored Aug 27, 2021
commit faa0f34ba6e7714a407b2b9416b18cafb221399b
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,12 @@ public static (string name, Func<RequestContext, Task> operation)[] Operations =

private static void ValidateStatusCode(HttpResponseMessage m, HttpStatusCode expectedStatus = HttpStatusCode.OK)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55261")]
if (m.StatusCode == HttpStatusCode.InternalServerError && m.Version == HttpVersion.Version30)
{
throw new Exception("IGNORE");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: whitespaces:

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's done already :)

if (m.StatusCode != expectedStatus)
{
throw new Exception($"Expected status code {expectedStatus}, got {m.StatusCode}");
Expand Down