bugfix 🐛, 1.2.2

This commit is contained in:
Jannis R 2017-10-04 02:12:12 +02:00
parent 83bf5c1b0a
commit f58cac93b7
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ const createRequest = (opt) => {
const request = (data) => { const request = (data) => {
const body = opt.onBody({lang: 'en', svcReqL: [data]}) const body = opt.onBody({lang: 'en', svcReqL: [data]})
const req = opt.onReq({ const req = opt.onReq({
json: true, body: JSON.stringify(body), json: true, body: body,
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Accept-Encoding': 'gzip, deflate', 'Accept-Encoding': 'gzip, deflate',

View file

@ -1,7 +1,7 @@
{ {
"name": "hafas-client", "name": "hafas-client",
"description": "JavaScript client for HAFAS mobile APIs.", "description": "JavaScript client for HAFAS mobile APIs.",
"version": "1.2.1", "version": "1.2.2",
"main": "index.js", "main": "index.js",
"files": [ "files": [
"index.js", "index.js",