// Typescript disallows the following assignment because req.url is readonly
req.url = req.url.replace('http://', 'https://');