[openhabcloud] Send the correct response status text (#17994)

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
Dan Cunningham 2024-12-28 10:06:08 -08:00 committed by Jacob Laursen
parent 4244d68200
commit f4cdcd8476

View File

@ -468,7 +468,7 @@ public class CloudClient {
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());