X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Net.Http%2FSystem.Net.Http%2FHttpContent.cs;h=df97dc50bbc11d7168206a84565ffb8321f9095e;hb=ed8d5f669da2e89b64112cc12eecdf4642204e3d;hp=344d87164eb1621a6d55bc6d67d03c3def40488b;hpb=93ce056a764e8048f33548a3744ba2bd84072043;p=mono.git diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs index 344d87164eb..df97dc50bbc 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpContent.cs @@ -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);