expressjs / morgan

HTTP request logger middleware for node.js
MIT License
7.95k stars 536 forks source link

http or httpS ? #244

Open dcsan opened 4 years ago

dcsan commented 4 years ago

is there a way to find if the request was made over httpS ? i tried most of the tokens I could see. :http-version only shows if the request v1 or 2

if not Then please consider this a request instead!

Shogobg commented 4 years ago

You can make a custom token and get the protocol from the req.protocol property.