equal
  deleted
  inserted
  replaced
  
    
    
    49             /foo.cgi/       ->   | 
    49             /foo.cgi/       ->   | 
    50             /foo.cgi/bar    -> bar  | 
    50             /foo.cgi/bar    -> bar  | 
    51             /foo.cgi/quux/  -> quux/  | 
    51             /foo.cgi/quux/  -> quux/  | 
    52         """  | 
    52         """  | 
    53           | 
    53           | 
    54         return os.path.normpath(self.env['PATH_INFO']).lstrip('/') | 
    54         # the raw PATH_INFO  | 
         | 
    55         path_info = self.env.get('PATH_INFO') | 
         | 
    56           | 
         | 
    57         # avoid nasty '.' paths  | 
         | 
    58         if path_info :  | 
         | 
    59             return os.path.normpath(path_info).lstrip('/') | 
         | 
    60   | 
         | 
    61         else :  | 
         | 
    62             return ''  | 
    55   | 
    63   | 
    56 class Response (object) :  | 
    64 class Response (object) :  | 
    57     """  | 
    65     """  | 
    58         HTTP Response with headers and data  | 
    66         HTTP Response with headers and data  | 
    59     """  | 
    67     """  |