diff --git a/lib/request.js b/lib/request.js index d8ff7dceb..76384193e 100644 --- a/lib/request.js +++ b/lib/request.js @@ -75,7 +75,6 @@ const request = (ctx, userAgent, reqData) => { 'ver', // HAFAS protocol version 'auth', // static authentication ])) - if (DEBUG) console.error(JSON.stringify(body)) const req = profile.transformReq(ctx, { agent: getAgent(), @@ -92,6 +91,7 @@ const request = (ctx, userAgent, reqData) => { redirect: 'follow', query: {} }) + if (DEBUG) console.error(req.body) if (profile.addChecksum || profile.addMicMac) { if (!Buffer.isBuffer(profile.salt) && 'string' !== typeof profile.salt) {