Skip to content

Commit

Permalink
fix request debug-logging 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Dec 9, 2021
1 parent 2fd0694 commit 9c10a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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) {
Expand Down

0 comments on commit 9c10a17

Please sign in to comment.