Skip to content

Commit 2bee08f

Browse files
committed
Use InvalidResponse for net_http_invalid_response_multiple_status_codes
1 parent 0b4dcf2 commit 2bee08f

File tree

1 file changed

+1
-2
lines changed
  • src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler

1 file changed

+1
-2
lines changed

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http2Stream.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,9 +610,8 @@ private void OnStatus(int statusCode)
610610

611611
if (_responseProtocolState == ResponseProtocolState.ExpectingHeaders)
612612
{
613-
// TODO: Fix
614613
if (NetEventSource.Log.IsEnabled()) Trace("Received extra status header.");
615-
throw new HttpRequestException(HttpRequestError.ConfigurationLimitExceeded, SR.net_http_invalid_response_multiple_status_codes);
614+
throw new HttpRequestException(HttpRequestError.InvalidResponse, SR.net_http_invalid_response_multiple_status_codes);
616615
}
617616

618617
if (_responseProtocolState != ResponseProtocolState.ExpectingStatus)

0 commit comments

Comments
 (0)