mirror of https://github.com/apache/nifi.git
NIFI-464 This closes #45 (minor revision - replace hard coded constant
with length)
This commit is contained in:
parent
a5e140f107
commit
3a27c378cc
|
@ -53,7 +53,7 @@ public class ProtocolHandshake {
|
|||
final DataOutputStream dos = new DataOutputStream(out);
|
||||
|
||||
try {
|
||||
final byte[] magicHeaderBuffer = new byte[4];
|
||||
final byte[] magicHeaderBuffer = new byte[MAGIC_HEADER.length];
|
||||
dis.readFully(magicHeaderBuffer);
|
||||
|
||||
receiveVersionNegotiation(versionNegotiator, dis, dos);
|
||||
|
|
Loading…
Reference in New Issue