WebResponse.cs: Implement SupportsHeaders property
authorMiguel de Icaza <miguel@gnome.org>
Fri, 14 Mar 2014 02:36:46 +0000 (22:36 -0400)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 14 Mar 2014 02:36:53 +0000 (22:36 -0400)
mcs/class/System/System.Net/WebResponse.cs

index f2c748f560f1c2e28ce415e775be592a23f35df9..9b9fab50815ec1fca4d8e030e70fbb34321d6887 100644 (file)
@@ -86,9 +86,13 @@ namespace System.Net
                        get { throw new NotSupportedException (); }\r
                }               \r
 #if NET_4_0\r
-               [MonoTODO ("for portable library support")]\r
+\r
                public virtual bool SupportsHeaders {\r
-                       get { throw new NotImplementedException (); }\r
+                       get {\r
+                               // The managed stack always returns this as true, it is only\r
+                               // the Silverlight stack that does not support this.\r
+                               return true;\r
+                       }\r
                }\r
 #endif\r
                // Methods\r