Skip to content

Commit 8cbf71b

Browse files
author
Simon MacMullen
committed
Make the CR-DEMO even sillier in order to demonstrate protocol_error.
1 parent c20a65c commit 8cbf71b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/rabbitmq/client/impl/CRDemoSaslClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public byte[] evaluateChallenge(byte[] challenge) throws SaslException {
5050
} else {
5151
PasswordCallback pc = new PasswordCallback("Password:", false);
5252
handler.handle(new Callback[]{pc});
53-
resp = new String(pc.getPassword()).getBytes("utf-8");
53+
resp = ("My password is " + new String(pc.getPassword())).getBytes("utf-8");
5454
}
5555
} catch (UnsupportedEncodingException e) {
5656
throw new RuntimeException(e);

0 commit comments

Comments
 (0)