def set_header ( self , name , value ) : self . _headers [ _hkey ( name ) ] = [ _hval ( value ) ]
python flask modify request header
Create a new response header replacing any previously defined headers with the same name .
def set_header(self, name, value):
        """ Create a new response header, replacing any previously defined
            headers with the same name. """
        self._headers[_hkey(name)] = [_hval(value)]