projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #3656 from marek-safar/bootstrap
[mono.git]
/
mcs
/
class
/
System.Net.Http
/
System.Net.Http
/
HttpContent.cs
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 344d87164eb1621a6d55bc6d67d03c3def40488b..df97dc50bbc11d7168206a84565ffb8321f9095e 100644
(file)
--- 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);