Set "responseType" field for status reports.

This commit is contained in:
Tristan B. Kildaire 2020-05-15 12:48:23 +02:00
parent 8d0256d105
commit 615ebc823a
1 changed files with 2 additions and 1 deletions

View File

@ -321,9 +321,10 @@ public final class BesterConnection : Thread
/* Construct the response */
JSONValue statusMessage;
/* Construct the haeder block */
/* Construct the header block */
JSONValue headerBlock;
headerBlock["status"] = statusType == 0 ? "good" : "bad";
headerBlock["responseType"] = "statusReport";
/* Attach the header block */
statusMessage["header"] = headerBlock;