mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09: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
|
'ver', // HAFAS protocol version
|
||||||
'auth', // static authentication
|
'auth', // static authentication
|
||||||
]))
|
]))
|
||||||
if (DEBUG) console.error(JSON.stringify(body))
|
|
||||||
|
|
||||||
const req = profile.transformReq(ctx, {
|
const req = profile.transformReq(ctx, {
|
||||||
agent: getAgent(),
|
agent: getAgent(),
|
||||||
|
@ -92,6 +91,7 @@ const request = (ctx, userAgent, reqData) => {
|
||||||
redirect: 'follow',
|
redirect: 'follow',
|
||||||
query: {}
|
query: {}
|
||||||
})
|
})
|
||||||
|
if (DEBUG) console.error(req.body)
|
||||||
|
|
||||||
if (profile.addChecksum || profile.addMicMac) {
|
if (profile.addChecksum || profile.addMicMac) {
|
||||||
if (!Buffer.isBuffer(profile.salt) && 'string' !== typeof profile.salt) {
|
if (!Buffer.isBuffer(profile.salt) && 'string' !== typeof profile.salt) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue