[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 GitHub
parent c21122a3d2
commit e2571d6f09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -468,7 +468,7 @@ public class CloudClient {
responseJson.put("id", requestId); responseJson.put("id", requestId);
responseJson.put("headers", getJSONHeaders(response.getHeaders())); responseJson.put("headers", getJSONHeaders(response.getHeaders()));
responseJson.put("responseStatusCode", response.getStatus()); responseJson.put("responseStatusCode", response.getStatus());
responseJson.put("responseStatusText", "OK"); responseJson.put("responseStatusText", response.getReason());
socket.emit("responseHeader", responseJson); socket.emit("responseHeader", responseJson);
logger.trace("Sent headers to request {}", requestId); logger.trace("Sent headers to request {}", requestId);
logger.trace("{}", responseJson.toString()); logger.trace("{}", responseJson.toString());