Bug fixing: replace REQUEST_SCHEME by HTTPS