mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
fix request debug-logging 🐛
This commit is contained in:
parent
2fd06941b5
commit
9c10a1765f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue