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 900ab60 commit 2bfbcf0Copy full SHA for 2bfbcf0
dotnet/src/dotnetframework/GxClasses/Domain/GxFtp.cs
@@ -847,9 +847,13 @@ private bool IsCompleteResponse(Stream responseStream)
847
{
848
int StatusCode=-1;
849
Byte[] ByteArray = new Byte[responselength];
850
- String statuscodestr;
851
- responseStream.Read(ByteArray,0,responselength);
852
- statuscodestr=Encoding.ASCII.GetString(ByteArray,0,responselength);
+ String statuscodestr;
+#if NETCORE
+ responseStream.ReadExactly(ByteArray,0,responselength);
853
+#else
854
+ responseStream.Read(ByteArray, 0, responselength);
855
+#endif
856
+ statuscodestr = Encoding.ASCII.GetString(ByteArray,0,responselength);
857
if (responselength==5 && ByteArray[responselength-1] == '\n')
858
859
0 commit comments