From a82cfa15c32bdc0bad2ef633f55b848faf6ccbc0 Mon Sep 17 00:00:00 2001 From: Manuel Sangoi Date: Thu, 24 Jul 2014 14:23:34 +0200 Subject: [PATCH] Fix API for exec requests --- .../src/main/java/leshan/server/servlet/ClientServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leshan-standalone/src/main/java/leshan/server/servlet/ClientServlet.java b/leshan-standalone/src/main/java/leshan/server/servlet/ClientServlet.java index c3ab619e..367df4ec 100644 --- a/leshan-standalone/src/main/java/leshan/server/servlet/ClientServlet.java +++ b/leshan-standalone/src/main/java/leshan/server/servlet/ClientServlet.java @@ -213,7 +213,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws S // /clients/endPoint/LWRequest : do LightWeight M2M execute request on a given client. try { RequestInfo requestInfo = new RequestInfo(path); - Client client = this.clientRegistry.get(path[1]); + Client client = this.clientRegistry.get(requestInfo.endpoint); if (client != null) { ClientResponse cResponse = this.execRequest(client, requestInfo, resp); processDeviceResponse(resp, cResponse);