1. Martin Thorsen Ranang
  2. paste


Ian Bicking  committed 7d61619

Get rid of misused .remote() method (should have been .delete()): http://trac.pythonpaste.org/pythonpaste/ticket/310

  • Participants
  • Parent commits 66838d0
  • Branches default

Comments (0)

Files changed (1)

File paste/httpheaders.py

View file
     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)``
         value = self.__call__(*args, **kwargs)
         if not value:
-            self.remove(collection)
+            self.delete(collection)
         if type(collection) == dict:
             collection[self._environ_name] = value