diff --git a/kits/javascript/shims/types/response.js b/kits/javascript/shims/types/response.js index df341b7..7b9da76 100644 --- a/kits/javascript/shims/types/response.js +++ b/kits/javascript/shims/types/response.js @@ -9,7 +9,12 @@ import httpStatus from "http-status"; // It contains different helpers class Response { constructor(body, options = {}) { - this.body = body; + // Process the body + if (body instanceof String) { + this.body = body.toString(); + } else { + this.body = body; + } if (options.headers instanceof Headers) { this.headers = options.headers; diff --git a/kits/javascript/wasm-workers-quick-js-engine.wasm b/kits/javascript/wasm-workers-quick-js-engine.wasm index 6ace5d4..1bf0388 100755 Binary files a/kits/javascript/wasm-workers-quick-js-engine.wasm and b/kits/javascript/wasm-workers-quick-js-engine.wasm differ