Skip to content

Commit

Permalink
Fix two ToLower calls (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored and vncoelho committed Oct 16, 2019
1 parent 2877178 commit df48b5d
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 df48b5d

Please sign in to comment.