From f8230a77b0a09e10955e1835d268a933229e05fe Mon Sep 17 00:00:00 2001 From: Muzzammil Shahid Date: Wed, 27 Mar 2024 13:12:33 +0500 Subject: [PATCH] add receive_progress option only when it is true --- .../main/java/io/crossbar/autobahn/wamp/messages/Call.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autobahn/src/main/java/io/crossbar/autobahn/wamp/messages/Call.java b/autobahn/src/main/java/io/crossbar/autobahn/wamp/messages/Call.java index 556b434d..235eca79 100644 --- a/autobahn/src/main/java/io/crossbar/autobahn/wamp/messages/Call.java +++ b/autobahn/src/main/java/io/crossbar/autobahn/wamp/messages/Call.java @@ -83,10 +83,12 @@ public List marshal() { marshaled.add(MESSAGE_TYPE); marshaled.add(request); Map options = new HashMap<>(); - options.put("receive_progress", receiveProgress); if (timeout > TIMEOUT_DEFAULT) { options.put("timeout", timeout); } + if (receiveProgress) { + options.put("receive_progress", true); + } marshaled.add(options); marshaled.add(procedure); if (kwargs != null) {