fix prev patch
[mono.git] / mcs / class / System / System.Net / HttpListenerContext.cs
index 4b94b40e59b095c680a956aa30c273639d7aed2b..6d41e4207bd134f487a02f6b7f87127888ed2a49 100644 (file)
@@ -86,7 +86,7 @@ namespace System.Net {
                        if (header == null || header.Length < 2)
                                return;
 
-                       string [] authenticationData = header.Substring (header.IndexOf (":")+1).Split (new char [] {' '});
+                       string [] authenticationData = header.Substring (header.IndexOf (':') + 1).Split (new char [] {' '});
 
                        if (string.Compare (authenticationData [0], "basic", true) == 0) {
                                user = ParseBasicAuthentication (authenticationData [1]);
@@ -105,7 +105,7 @@ namespace System.Net {
                                // The format is DOMAIN\username:password
                                // Domain is optional
 
-                               pos = authString.IndexOf (":");
+                               pos = authString.IndexOf (':');
        
                                // parse the password off the end
                                password = authString.Substring (pos+1);
@@ -114,7 +114,7 @@ namespace System.Net {
                                authString = authString.Substring (0, pos);
        
                                // check if there is a domain
-                               pos = authString.IndexOf ("\\");
+                               pos = authString.IndexOf ('\\');
        
                                if (pos > 0) {
                                        //domain = authString.Substring (0, pos);