Change check to detect Windows.
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 23 Oct 2011 06:33:29 +0000 (02:33 -0400)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sun, 23 Oct 2011 06:34:38 +0000 (02:34 -0400)
mcs/class/System/System.Net/WebRequest.cs

index cd62b6d7625b5098021a830f84e31a802278b0a3..3ad59e216eddc390665ccd8424abb8a914d9a8f0 100644 (file)
@@ -466,7 +466,7 @@ namespace System.Net
                
                internal static bool IsWindows ()
                {
-                       return Environment.GetEnvironmentVariable ("windir") != null;
+                       return (int) Environment.OSVersion.Platform < 4;
                }
 
                internal static void ClearPrefixes ()