|
@@ -165,7 +165,7 @@ void getFruChassisInfo(Webs *wp)
|
|
cJSON_AddStringToObject(data, "SN", _chassisSerialNum);
|
|
cJSON_AddStringToObject(data, "SN", _chassisSerialNum);
|
|
cJSON_AddStringToObject(data, "OEM", _chassisCustomField);
|
|
cJSON_AddStringToObject(data, "OEM", _chassisCustomField);
|
|
|
|
|
|
- pStr = cJSON_Print(root);
|
|
|
|
|
|
+ pStr = cJSON_PrintUnformatted(root);
|
|
|
|
|
|
websSetStatus(wp, 200);
|
|
websSetStatus(wp, 200);
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
@@ -295,7 +295,7 @@ void getFruBoardInfo(Webs *wp)
|
|
cJSON_AddStringToObject(data, "PN", _boardPartNum);
|
|
cJSON_AddStringToObject(data, "PN", _boardPartNum);
|
|
cJSON_AddStringToObject(data, "OEM", _boardCustomField);
|
|
cJSON_AddStringToObject(data, "OEM", _boardCustomField);
|
|
|
|
|
|
- pStr = cJSON_Print(root);
|
|
|
|
|
|
+ pStr = cJSON_PrintUnformatted(root);
|
|
|
|
|
|
websSetStatus(wp, 200);
|
|
websSetStatus(wp, 200);
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
@@ -434,7 +434,7 @@ void getFruProductInfo(Webs *wp)
|
|
cJSON_AddStringToObject(data, "Ver", _ProductVersion);
|
|
cJSON_AddStringToObject(data, "Ver", _ProductVersion);
|
|
cJSON_AddStringToObject(data, "SN", _ProductSerialNum);
|
|
cJSON_AddStringToObject(data, "SN", _ProductSerialNum);
|
|
cJSON_AddStringToObject(data, "OEM", _productCustomField);
|
|
cJSON_AddStringToObject(data, "OEM", _productCustomField);
|
|
- pStr = cJSON_Print(root);
|
|
|
|
|
|
+ pStr = cJSON_PrintUnformatted(root);
|
|
|
|
|
|
websSetStatus(wp, 200);
|
|
websSetStatus(wp, 200);
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
@@ -758,9 +758,9 @@ void getFruProductInfo(Webs *wp)
|
|
// cJSON_AddStringToObject(product, "SN", _ProductSerialNum);
|
|
// cJSON_AddStringToObject(product, "SN", _ProductSerialNum);
|
|
// cJSON_AddStringToObject(product, "OEM", _productCustomField);
|
|
// cJSON_AddStringToObject(product, "OEM", _productCustomField);
|
|
|
|
|
|
-// pStr1 = cJSON_Print(chassis);
|
|
|
|
-// pStr2 = cJSON_Print(board);
|
|
|
|
-// pStr3 = cJSON_Print(product);
|
|
|
|
|
|
+// pStr1 = cJSON_PrintUnformatted(chassis);
|
|
|
|
+// pStr2 = cJSON_PrintUnformatted(board);
|
|
|
|
+// pStr3 = cJSON_PrintUnformatted(product);
|
|
|
|
|
|
// websSetStatus(wp, 200);
|
|
// websSetStatus(wp, 200);
|
|
// websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|
|
// websWriteHeaders(wp, -1, 0); //Set length to -1 if unknown and transfer-chunk-encoding will be employed.
|