def update_request(self):
        '''
        update request from self
        build env.request_uri
        make lower-case versions of http headers in env
        '''
        self.request.application = self.application
        self.request.controller = self.controller
        self.request.function = self.function
        self.request.extension = self.extension
        self.request.args = self.args
        if self.language:
            self.request.uri_language = self.language
        uri = '/%s/%s' % (self.controller, self.function)
        app = self.application
        if self.map_hyphen:
            uri = uri.replace('_', '-')
            app = app.replace('_', '-')
        if self.extension and self.extension != 'html':
            uri += '.' + self.extension
        if self.language:
            uri = (self.language, uri) % '/%s%s'
        uri = '/%s%s%s%s' % (
            app,
            uri,
            urllib.quote('/' + '/'.join(
                str(x) for x in self.args)) if self.args else '',
            ('?' + self.query) if self.query else '')
        self.env['REQUEST_URI'] = uri
        self.sluggify()
dataset/ETHPy150Open uwdata/termite-visualizations/web2py/gluon/rewrite.py/MapUrlIn.update_request/swapped operands of `%`