Ignore:
Timestamp:
24/02/10 16:01:49 (10 years ago)
Author:
pjkersha
Message:

Merging in changes from 6557

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/branches/ndg-security-1.5.x/ndg_security_server/ndg/security/server/wsgi/myproxy/__init__.py

    r6202 r6633  
    142142            """Wrap MyProxy logon method as a WSGI app 
    143143            """ 
    144             if environ['HTTP_METHOD'] == 'GET': 
     144            if environ.get('REQUEST_METHOD') == 'GET': 
    145145                # No certificate request passed with GET call 
    146146                # TODO: retire this method? - keys are generated here instead of 
     
    148148                certReq = None 
    149149                     
    150             elif environ['HTTP_METHOD'] == 'POST': 
     150            elif environ.get('REQUEST_METHOD') == 'POST': 
    151151                 
    152152                pemCertReq = environ[ 
     
    160160                status = self.getStatusMessage(httplib.UNAUTHORIZED) 
    161161                response = ("HTTP request method %r not recognised for this " 
    162                             "request " % environ['HTTP_METHOD']) 
     162                            "request " % environ.get('REQUEST_METHOD',  
     163                                                     '<Not set>')) 
    163164                 
    164165            try: 
Note: See TracChangeset for help on using the changeset viewer.