Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 2042

Show
Ignore:
Timestamp:
09/27/08 16:09:17
Author:
fumanchu
Message:

Fix for #850 (REMOTE_USER should not be set by wsgiserver).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/wsgiserver/__init__.py

    r2041 r2042  
    407407            self.simple_response("413 Request Entity Too Large") 
    408408            return 
    409          
    410         # Set AUTH_TYPE, REMOTE_USER 
    411         creds = environ.get("HTTP_AUTHORIZATION", "").split(" ", 1) 
    412         environ["AUTH_TYPE"] = creds[0] 
    413         if creds[0].lower() == 'basic': 
    414             user, pw = base64.decodestring(creds[1]).split(":", 1) 
    415             environ["REMOTE_USER"] = user 
    416409         
    417410        # Persistent connection support 

Hosted by WebFaction

Log in as guest/cpguest to create tickets