We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a674d46 commit 01705e1Copy full SHA for 01705e1
dotnet/src/dotnetframework/GxClasses/Domain/GxHttpClient.cs
@@ -1911,11 +1911,12 @@ public override string ToString()
1911
#if NETCORE
1912
public async Task<string> ToStringAsync()
1913
{
1914
- if (await ReceiveDataAsync() == null)
+ byte[] bytes = await ReceiveDataAsync();
1915
+ if (bytes == null)
1916
return string.Empty;
1917
if (_encoding == null)
1918
_encoding = Encoding.UTF8;
- string responseString = _encoding.GetString(ReceiveData);
1919
+ string responseString = _encoding.GetString(bytes);
1920
GXLogging.DebugSanitized(log, "_responseString " + responseString);
1921
return responseString;
1922
}
0 commit comments