Skip to content

Commit e78a667

Browse files
committed
fix HttpResponseMessage.xml warning
1 parent b85887c commit e78a667

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

xml/System.Net.Http/HttpResponseMessage.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,8 @@ When the `disposing` parameter is `true`, this method releases all resources hel
351351
<format type="text/markdown"><![CDATA[
352352
353353
## Remarks
354-
The <xref:System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode%2A> method throws an <xref:System.Net.Http.HttpRequestException> if <see cref="P:System.Net.Http.HttpResponseMessage.StatusCode" /> is outside of the range the range 200-299 (the range of status codes indicating success according to the standard).
355-
In some scenarios you may need stronger control defining which status codes are considered to be succesful; for example an API may be expected to always return `200 OK`.
356-
In such cases we recommend to manually check if <xref:System.Net.Http.HttpResponseMessage.StatusCode?displayProperty=nameWithType> matches the expected value(s).
354+
The <xref:System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode%2A> method throws an <xref:System.Net.Http.HttpRequestException> if <xref:System.Net.Http.HttpResponseMessage.StatusCode> is outside of the range the range 200-299 (the range of status codes indicating success according to the standard).
355+
In some scenarios you may need stronger control defining which status codes are considered to be succesful; for example an API may be expected to always return `200 OK`. In such cases we recommend to manually check if <xref:System.Net.Http.HttpResponseMessage.StatusCode> matches the expected value(s).
357356
In .NET Framework and .NET Core 2.2 and earlier versions, if the <xref:System.Net.Http.HttpResponseMessage.Content%2A> is not `null`, this method will also call <xref:System.Net.Http.HttpResponseMessage.Dispose%2A> to free managed and unmanaged resources. Starting with .NET Core 3.0, the content will not be disposed.
358357
359358
]]></format>

0 commit comments

Comments
 (0)