Skip to content

Commit 57aaed9

Browse files
Luke AldertonRon Petrusha
andcommitted
Corrected reference of URI schemes (#2531)
* Corrected reference of URI schemes Corrected reference of URI schemes for the `requestUriString` parameter to include both http and https. * Update xml/System.Net/WebRequest.xml Co-Authored-By: Ron Petrusha <[email protected]>
1 parent fa5a4d4 commit 57aaed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Net/WebRequest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@
976976
## Remarks
977977
The <xref:System.Net.WebRequest.CreateHttp%28System.String%29> method returns an instance of the <xref:System.Net.HttpWebRequest> class for the `requestUriString`.
978978
979-
When a URI that begins with `http://` or `http://` is passed in the `requestUriString` parameter, a <xref:System.Net.HttpWebRequest> is returned by <xref:System.Net.WebRequest.CreateHttp%28System.String%29>. Another other scheme will throw an <xref:System.NotSupportedException>.
979+
When a URI that begins with `http://` or `https://` is passed in the `requestUriString` parameter, a <xref:System.Net.HttpWebRequest> is returned by <xref:System.Net.WebRequest.CreateHttp%28System.String%29>. Any other scheme will throw a <xref:System.NotSupportedException>.
980980
981981
The <xref:System.Net.WebRequest.CreateHttp%28System.String%29> method uses the `requestUriString` parameter to create a <xref:System.Uri> instance that it passes to the new <xref:System.Net.HttpWebRequest>. If the method is successful, the <xref:System.Net.HttpWebRequest.AllowReadStreamBuffering%2A> property on the returned <xref:System.Net.HttpWebRequest> instance is set to `false`.
982982
@@ -2347,4 +2347,4 @@ This property allows an application to determine which <xref:System.Net.IWebRequ
23472347
</Docs>
23482348
</Member>
23492349
</Members>
2350-
</Type>
2350+
</Type>

0 commit comments

Comments
 (0)