mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 19:05:56 +00:00
json bugfix
This commit is contained in:
@ -657,9 +657,9 @@ static int http_rest_error(http_request_t *request, int code, char *msg){
|
||||
request->responseCode = HTTP_RESPONSE_SERVER_ERROR;
|
||||
http_setup(request, httpMimeTypeJson);
|
||||
if (code != 200){
|
||||
hprintf128(request, "{\"error\":%d, \"msg\"=\"%s\"}", code, msg);
|
||||
hprintf128(request, "{\"error\":%d, \"msg\":\"%s\"}", code, msg);
|
||||
} else {
|
||||
hprintf128(request, "{\"success\":%d, \"msg\"=\"%s\"}", code, msg);
|
||||
hprintf128(request, "{\"success\":%d, \"msg\":\"%s\"}", code, msg);
|
||||
}
|
||||
poststr(request,NULL);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user