diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-03-25 18:44:13 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-03-25 18:44:13 +0400 |
commit | 7a345a73f5cdd9f89fb6103d0b52b745a8f1dd45 (patch) | |
tree | 1fb2381116db2010fd36f275975a21ff379d6955 /mcs | |
parent | 4b294019c65290519d45c8ae858f7a04133ca9c6 (diff) | |
parent | 1a6f502f565a79c453ebefea521327907fb52efa (diff) |
Merge pull request #607 from maksimenko/master
use await GetRequestStreamAsync on System.Net.Http.HttpClientHandler SendAsync to avoid blocking
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs index eb336f70d87..bd868f9776d 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.cs @@ -308,7 +308,7 @@ namespace System.Net.Http } } - var stream = wrequest.GetRequestStream (); + var stream = await wrequest.GetRequestStreamAsync (); await request.Content.CopyToAsync (stream).ConfigureAwait (false); } |