Changeset 26


Ignore:
Timestamp:
11/10/06 21:17:58 (5 years ago)
Author:
harald
Message:
  • Forgot the damn slash
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sitemap-plugin/trunk/sitemap/api.py

    r25 r26  
    106106    def match_request(self, req): 
    107107        """Return whether the handler wants to process the given request.""" 
    108         return req.path_info == self.path or (len (self.confirmationpage) > 0 and req.path_info == self.confirmationpage) 
     108        return req.path_info == self.path or (len (self.confirmationpage) > 0 and req.path_info == '/' + self.confirmationpage) 
    109109 
    110110    def process_request(self, req): 
     
    112112        simply send the response itself and not return anything. 
    113113        """ 
    114         if req.path_info == self.confirmationpage: 
     114        if req.path_info == '/' + self.confirmationpage: 
    115115            req.send_response(200) 
    116116            req.send_header('Content-Type', 'text/plain') 
Note: See TracChangeset for help on using the changeset viewer.