'Update request url scheme with base url scheme.'

def _update_url_scheme(self, request):

    url = self.base_url(request.context_dict, request.context_dict['path'])
    url_scheme = list(urlparse.urlparse(url))[0]
    req_url_list = list(urlparse.urlparse(request.url))
    req_url_list[0] = url_scheme
    req_url = urlparse.urlunparse(req_url_list)
    return req_url
