@adaas/a-server 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -292,7 +292,7 @@ var A_RequestHelper = class _A_RequestHelper {
292
292
  let bodyType;
293
293
  switch (true) {
294
294
  case (!!context.contentType && context.contentType.includes("application/json")):
295
- parsedBody = JSON.parse(context.data);
295
+ parsedBody = JSON.parse(context.data || "{}");
296
296
  bodyType = "json";
297
297
  break;
298
298
  case (!!context.contentType && context.contentType.includes("application/x-www-form-urlencoded")):