fixing faulty req.encrypted detection when server hosted through http