Avoiding express bug with req.secure