From 703c075de3c233499aed2c8be42e8c08df88cd7f Mon Sep 17 00:00:00 2001 From: bill bittner Date: Tue, 12 Dec 2017 15:20:51 -0800 Subject: [PATCH] added middleware log of headers --- speech.js | 2 +- testpage.html | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/speech.js b/speech.js index 7e7a4e5f..c2717258 100644 --- a/speech.js +++ b/speech.js @@ -33,7 +33,7 @@ app.use(bodyParser.json()); // 'body parser' for parsing application/json app.use(bodyParser.urlencoded({ extended: true })); // 'body parser' for parsing application/x-www-form-urlencoded app.use((req, res, next) => { // custom logging middleware to log all incoming http requests logger.verbose(`Request on ${req.originalUrl} from ${req.ip}`); - logger.debug('req.body:', req.body); + logger.debug('req.headers:', req.headers); next(); }); diff --git a/testpage.html b/testpage.html index 65dcdb74..ca43ee36 100644 --- a/testpage.html +++ b/testpage.html @@ -5,13 +5,13 @@ Test Page - - - - - - - - + + + + + + + + - \ No newline at end of file +