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 8fdbb44 commit e2523edCopy full SHA for e2523ed
src/RestSharp/Response/RestResponse.cs
@@ -90,7 +90,7 @@ async Task<RestResponse> GetDefaultResponse() {
90
ContentType = httpResponse.Content.Headers.ContentType?.MediaType,
91
ResponseStatus = calculateResponseStatus(httpResponse),
92
ErrorException = httpResponse.MaybeException(),
93
- ResponseUri = httpResponse.RequestMessage!.RequestUri,
+ ResponseUri = httpResponse.RequestMessage?.RequestUri,
94
Server = httpResponse.Headers.Server.ToString(),
95
StatusCode = httpResponse.StatusCode,
96
StatusDescription = httpResponse.ReasonPhrase,
0 commit comments