Skip to content

Commit

Permalink
Fix no header in reply-to message (see jlavallee#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliesbelik committed Oct 29, 2021
1 parent a181010 commit e0afe6f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/com/zeroclue/jmeter/protocol/amqp/AMQPConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,18 @@ private String formatHeaders(QueueingConsumer.Delivery delivery) {
.append(": ")
.append(delivery.getEnvelope().getRoutingKey())
.append("\n");
sb.append(DELIVERY_TAG_PARAMETER).append(": ").append(delivery.getEnvelope().getDeliveryTag()).append("\n");
sb.append(DELIVERY_TAG_PARAMETER)
.append(": ")
.append(delivery.getEnvelope().getDeliveryTag())
.append("\n");

for (String key : headers.keySet()) {
sb.append(key)
.append(": ")
.append(headers.get(key))
.append("\n");
if (headers != null) {
for (String key : headers.keySet()) {
sb.append(key)
.append(": ")
.append(headers.get(key))
.append("\n");
}
}

return sb.toString();
Expand Down

0 comments on commit e0afe6f

Please sign in to comment.