We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b4dcf2 commit 2bee08fCopy full SHA for 2bee08f
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Stream.cs
@@ -610,9 +610,8 @@ private void OnStatus(int statusCode)
610
611
if (_responseProtocolState == ResponseProtocolState.ExpectingHeaders)
612
{
613
- // TODO: Fix
614
if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header.");
615
- throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.net_http_invalid_response_multiple_status_codes);
+ throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_multiple_status_codes);
616
}
617
618
if (_responseProtocolState != ResponseProtocolState.ExpectingStatus)
0 commit comments