Changeset 1865
- Timestamp:
- 01/16/08 16:33:36
- Files:
-
- branches/cherrypy-3.0.x/cherrypy/lib/httpauth.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/cherrypy-3.0.x/cherrypy/lib/httpauth.py
r1418 r1865 142 142 return None 143 143 144 # If qop is sent then cnonce and cn MUST be present 145 if params.has_key("qop") and not params.has_key("cnonce") \ 146 and params.has_key("cn"): 144 # If qop is sent then cnonce and nc MUST be present 145 if params.has_key("qop") and not (params.has_key("cnonce") \ 146 and params.has_key("nc")): 147 return None 148 149 # If qop is not sent, neither cnonce nor nc can be present 150 if (params.has_key("cnonce") or params.has_key("nc")) and \ 151 not params.has_key("qop"): 147 152 return None 148 153

