diff --git a/package.json b/package.json index b0e046e..8376400 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "valory-adaptor-alb", - "version": "2.0.0-beta.5", + "version": "2.0.0-beta.6", "main": "dist/albAdaptor.js", "typings": "dist/albAdaptor.d.ts", "license": "MIT", diff --git a/src/albAdaptor.ts b/src/albAdaptor.ts index b1a069c..038514a 100644 --- a/src/albAdaptor.ts +++ b/src/albAdaptor.ts @@ -28,7 +28,7 @@ export class ALBAdaptor implements ApiAdaptor { public register(path: string, method: HttpMethod, handler: (ctx: ApiContext) => Promise) { this.router.on(method, path.replace(pathReplacer, ":$1"), async (request, callback, params) => { - const content = (request.isBase64Encoded) ? Buffer.from("base64").toString() : request.body; + const content = (request.isBase64Encoded) ? Buffer.from(request.body, "base64").toString() : request.body; const tranRequest = new ApiContext({ headers: request.headers, pathParams: params,