Skip to content

Commit 0e3070e

Browse files
vthg2themaxBillWagner
authored andcommitted
Remind users that the User Agent may be null. (dotnet#725)
When you read the page, it appears that a String will be returned always, this is not the case. In the event the web requester sends a null User Agent, it is not converted to an empty string, and thus should be considered by the programmer.
1 parent 5bc246e commit 0e3070e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Web/HttpRequest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,7 +2251,7 @@ Dim fullname2 As String = Request("fullname")
22512251
<ReturnType>System.String</ReturnType>
22522252
</ReturnValue>
22532253
<Docs>
2254-
<summary>Gets the raw user agent string of the client browser.</summary>
2254+
<summary>Gets the raw user agent string of the client browser that has been provided. Please note it may be null.</summary>
22552255
<value>The raw user agent string of the client browser.</value>
22562256
<remarks>
22572257
<format type="text/markdown"><![CDATA[
@@ -2408,4 +2408,4 @@ Dim fullname2 As String = Request("fullname")
24082408
</Docs>
24092409
</Member>
24102410
</Members>
2411-
</Type>
2411+
</Type>

0 commit comments

Comments
 (0)