Zope2: workaround for broken implementation of Basic auth encoding.
Showing
-
Owner
BaseRequest._auth
is set (on the class) toNone
, which causes this code to raise:AttributeError: 'NoneType' object has no attribute 'lower'
.The code used in
HTTPRequest.clone
to decide whether_auth
is set is:if self._auth:
and I think it should be used here too.
-
Owner
for this annoying AttributeError, @georgios.dagkakis pushed a fixup commit 7eb96ab7 yesterday.
(indeed, getattr here is too verbose, as it should always have _auth.)
Please register or sign in to comment