Skip to content

Commit 7204b8e

Browse files
committed
Fixed Build Error
1 parent d9eee1a commit 7204b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CSharpHTTPClient/Client.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, o
288288
}
289289
i++;
290290
}
291-
result = RequestAsync(binder.Name.ToUpper(), requestBody: requestBody, queryParams: queryParams).Result;
291+
result = RequestAsync(binder.Name.ToUpper(), requestBody: requestBody, queryParams: queryParams).ConfigureAwait(false);
292292
return true;
293293
}
294294
else
@@ -357,7 +357,7 @@ private async Task<Response> RequestAsync(string method, String requestBody = nu
357357
StringContent content = null;
358358
if (requestBody != null)
359359
{
360-
content = new StringContent(requestBody.ToString().Replace("'", "\""), Encoding.UTF8, MediaType);
360+
content = new StringContent(requestBody, Encoding.UTF8, MediaType);
361361
}
362362

363363
// Build the final request

0 commit comments

Comments
 (0)