Skip to content
Permalink
Browse files

Fix CopyTo

  • Loading branch information...
mythz committed Aug 7, 2019
1 parent e91e678 commit f4763bf74a9cc0c9a727fc5cad447aed3d71c08a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ServiceStack.Text/HttpUtils.cs
@@ -801,7 +801,7 @@ public static bool HasRequestBody(string httpMethod)
{
using (var req = PclExport.Instance.GetRequestStream(webReq))
{
req.CopyTo(requestBody);
requestBody.CopyTo(req);
}
}

@@ -839,7 +839,7 @@ public static bool HasRequestBody(string httpMethod)
{
using (var req = PclExport.Instance.GetRequestStream(webReq))
{
await req.CopyToAsync(requestBody);
await requestBody.CopyToAsync(req);
}
}

0 comments on commit f4763bf

Please sign in to comment.
You can’t perform that action at this time.