mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[openhabcloud] Send the correct response status text (#17994)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
parent
c21122a3d2
commit
e2571d6f09
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user