From f4cdcd8476b81c8bc4e22572868ae290f0487b1f Mon Sep 17 00:00:00 2001 From: Dan Cunningham Date: Sat, 28 Dec 2024 10:06:08 -0800 Subject: [PATCH] [openhabcloud] Send the correct response status text (#17994) Signed-off-by: Dan Cunningham --- .../java/org/openhab/io/openhabcloud/internal/CloudClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudClient.java b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudClient.java index 5ddef54660b85..e5f53bb659915 100644 --- a/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudClient.java +++ b/bundles/org.openhab.io.openhabcloud/src/main/java/org/openhab/io/openhabcloud/internal/CloudClient.java @@ -468,7 +468,7 @@ private void handleRequestEvent(JSONObject data) { responseJson.put("id", requestId); responseJson.put("headers", getJSONHeaders(response.getHeaders())); responseJson.put("responseStatusCode", response.getStatus()); - responseJson.put("responseStatusText", "OK"); + responseJson.put("responseStatusText", response.getReason()); socket.emit("responseHeader", responseJson); logger.trace("Sent headers to request {}", requestId); logger.trace("{}", responseJson.toString());