summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--paste/httpheaders.py4
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