bottle_auth/core/httputil.py
def add(self, name, value):
        """Adds a new value for the given key."""
        norm_name = HTTPHeaders._normalize_name(name)
        self._last_key = norm_name
        if norm_name in self:
            # bypass our override of __setitem__ since it modifies _as_list
            dict.__setitem__(self, norm_name, self[norm_name] + ',' + value)
            self._as_list[norm_name].append(value)
        else:
            self[norm_name] = value
def add(self, name, value):
        norm_name = HTTPHeaders._normalize_name(name)
        self._last_key = norm_name
        if norm_name in self:
            # bypass our override of __setitem__ since it modifies _as_list
            dict.__setitem__(self, norm_name, self[norm_name] + ',' + value)
            self._as_list[norm_name].append(value)
        else:
            self[norm_name] = value
def add ( self , name , value ) : norm_name = HTTPHeaders . _normalize_name ( name ) self . _last_key = norm_name if norm_name in self : # bypass our override of __setitem__ since it modifies _as_list dict . __setitem__ ( self , norm_name , self [ norm_name ] + ',' + value ) self . _as_list [ norm_name ] . append ( value ) else : self [ norm_name ] = value
Adds a new value for the given key.
Adds a new value for the given key .