Merge pull request #3656 from marek-safar/bootstrap
[mono.git] / mcs / class / System.Net.Http / System.Net.Http / HttpContent.cs
index 344d87164eb1621a6d55bc6d67d03c3def40488b..df97dc50bbc11d7168206a84565ffb8321f9095e 100644 (file)
@@ -81,6 +81,12 @@ namespace System.Net.Http
                        }
                }
 
+               // Only used by HttpWebRequest internals which is not async friendly
+               internal void CopyTo (Stream stream)
+               {
+                       CopyToAsync (stream).Wait ();
+               }
+
                public Task CopyToAsync (Stream stream)
                {
                        return CopyToAsync (stream, null);