expressjs / morgan

HTTP request logger middleware for node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http or httpS ?

dcsan opened this issue · comments

commented

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!

commented

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