Fixed JSONERROR handling
This commit is contained in:
parent
660e49a9f6
commit
437be79d69
1 changed files with 2 additions and 0 deletions
|
@ -101,6 +101,8 @@ public class IOHelper {
|
|||
public static JsonObject GetPOSTJSON(HttpExchange exchange) {
|
||||
try {
|
||||
String content = GetPOST(exchange);
|
||||
if (content.length() == 0)
|
||||
return null;
|
||||
JsonElement e = new JsonParser().parse(content);
|
||||
if (e == null)
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue