Skip to content

Commit 9c10a17

Browse files
committed
fix request debug-logging 🐛
1 parent 2fd0694 commit 9c10a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const request = (ctx, userAgent, reqData) => {
7575
'ver', // HAFAS protocol version
7676
'auth', // static authentication
7777
]))
78-
if (DEBUG) console.error(JSON.stringify(body))
7978

8079
const req = profile.transformReq(ctx, {
8180
agent: getAgent(),
@@ -92,6 +91,7 @@ const request = (ctx, userAgent, reqData) => {
9291
redirect: 'follow',
9392
query: {}
9493
})
94+
if (DEBUG) console.error(req.body)
9595

9696
if (profile.addChecksum || profile.addMicMac) {
9797
if (!Buffer.isBuffer(profile.salt) && 'string' !== typeof profile.salt) {

0 commit comments

Comments
 (0)