Jiri Danek 2019-02-14 15:43:52 +01:00 committed by Clebert Suconic
parent 5b535da984
commit 99e39f5f1c
1 changed files with 2 additions and 2 deletions

View File

@ -106,8 +106,8 @@ public abstract class AbstractControl extends StandardMBean {
try { try {
CoreMessage message = new CoreMessage(storageManager.generateID(), 50); CoreMessage message = new CoreMessage(storageManager.generateID(), 50);
if (headers != null) { if (headers != null) {
for (String header : headers.keySet()) { for (Map.Entry<String, String> header : headers.entrySet()) {
message.putStringProperty(new SimpleString(header), new SimpleString(headers.get(header))); message.putStringProperty(new SimpleString(header.getKey()), new SimpleString(headers.get(header.getValue())));
} }
} }
message.setType((byte) type); message.setType((byte) type);