From 0a796308e2f08bfcf2fdf7413174bd39f3b9b323 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 20 Feb 2019 14:51:51 +0000 Subject: [PATCH] logging --- server.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 6ee8634..2222079 100644 --- a/server.js +++ b/server.js @@ -35,10 +35,11 @@ app.get('/v2/get_device', (req, res) => { console.log('query', req.query); console.log('\n\n\n'); + const obj = {}; - obj.rid = req.headers.get('x-rid'); - obj.did = req.headers.get('x-ya-did'); + obj.rid = req.headers['x-rid']; + obj.did = req.headers['x-ya-did']; obj.yaDid = obj.did; obj.crumb = 'LvnvxRvdbc';