From 5a51c8f35bb4ffd493c5a965fe6d72acfdac25b1 Mon Sep 17 00:00:00 2001 From: Bjorn Niels Date: Wed, 27 Mar 2019 15:02:32 +0100 Subject: [PATCH] Bugfix: incorrect subscription URI when unsubscribing. --- .../arrowhead/common/api/clients/core/EventHandlerClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-common/src/main/java/eu/arrowhead/common/api/clients/core/EventHandlerClient.java b/client-common/src/main/java/eu/arrowhead/common/api/clients/core/EventHandlerClient.java index 80716a4..6550a4d 100644 --- a/client-common/src/main/java/eu/arrowhead/common/api/clients/core/EventHandlerClient.java +++ b/client-common/src/main/java/eu/arrowhead/common/api/clients/core/EventHandlerClient.java @@ -137,7 +137,7 @@ public void subscribe(String eventType, ArrowheadSystem consumer, String notifyP public void unsubscribe(ArrowheadSystem consumer, String eventType) { String consumerName = consumer.getSystemName(); - request(Method.DELETE, SUBSCRIPTION_URI.clone().path("subscription").path("type").path(eventType).path("consumer").path(consumerName)); + request(Method.DELETE, SUBSCRIPTION_URI.clone().path("type").path(eventType).path("consumer").path(consumerName)); final Map> handlerSubscriptions = subscriptions.get(this); final Set consumerSubscriptions = handlerSubscriptions != null ? handlerSubscriptions.get(consumer) : null;