From f58cac93b79fc7e71596e6441e2ec9330dc505ca Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 4 Oct 2017 02:12:12 +0200 Subject: [PATCH] bugfix :bug:, 1.2.2 --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9ae6f877..10948c67 100644 --- a/index.js +++ b/index.js @@ -29,7 +29,7 @@ const createRequest = (opt) => { const request = (data) => { const body = opt.onBody({lang: 'en', svcReqL: [data]}) const req = opt.onReq({ - json: true, body: JSON.stringify(body), + json: true, body: body, headers: { 'Content-Type': 'application/json', 'Accept-Encoding': 'gzip, deflate', diff --git a/package.json b/package.json index a067333f..014f7b06 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hafas-client", "description": "JavaScript client for HAFAS mobile APIs.", - "version": "1.2.1", + "version": "1.2.2", "main": "index.js", "files": [ "index.js",