diff options
author | Ian Bicking <ianb@colorstudy.com> | 2010-09-02 02:24:48 -0500 |
---|---|---|
committer | Ian Bicking <ianb@colorstudy.com> | 2010-09-02 02:24:48 -0500 |
commit | 1ce1c1c216aaf5b90102be554df6c4f99c797006 (patch) | |
tree | 6aa556a0dd4aa7f3b958d5df6ebbe07ac65569a4 | |
parent | ea5aa0eed5b326fb3470362b53dfbb54295e7e2a (diff) | |
download | paste-1ce1c1c216aaf5b90102be554df6c4f99c797006.tar.gz |
Get rid of misused .remote() method (should have been .delete()): http://trac.pythonpaste.org/pythonpaste/ticket/310
-rw-r--r-- | paste/httpheaders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py index ae910c9..728fa39 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -41,7 +41,7 @@ a WSGI collection, for removing and setting header values. This method removes all entries of the corresponding header from the given collection (``environ`` or ``response_headers``), e.g., - ``USER_AGENT.remove(environ)`` deletes the 'HTTP_USER_AGENT' entry + ``USER_AGENT.delete(environ)`` deletes the 'HTTP_USER_AGENT' entry from the ``environ``. ``update(collection, *args, **kwargs)`` @@ -459,7 +459,7 @@ class HTTPHeader(object): """ value = self.__call__(*args, **kwargs) if not value: - self.remove(collection) + self.delete(collection) return if type(collection) == dict: collection[self._environ_name] = value |