Trying to fix req.protcol instead of this way