Skip to content

Commit

Permalink
Fix two ToLower calls (neo-project#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored and Tommo-L committed Jun 22, 2020
1 parent 2200df1 commit a0b3bfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neo/Network/UPnP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public static bool Discover()
{
length = s.Receive(buffer);

string resp = Encoding.ASCII.GetString(buffer, 0, length).ToLower();
string resp = Encoding.ASCII.GetString(buffer, 0, length).ToLowerInvariant();
if (resp.Contains("upnp:rootdevice"))
{
resp = resp.Substring(resp.ToLower().IndexOf("location:") + 9);
resp = resp.Substring(resp.IndexOf("location:") + 9);
resp = resp.Substring(0, resp.IndexOf("\r")).Trim();
if (!string.IsNullOrEmpty(_serviceUrl = GetServiceUrl(resp)))
{
Expand Down

0 comments on commit a0b3bfc

Please sign in to comment.