Contact: fumanchu@aminus.org

Log in as guest/misc to create tickets

Changeset 72

Show
Ignore:
Timestamp:
04/17/06 13:14:42
Author:
fumanchu
Message:

Fix for #2 (ASP gateway doesn't forward HTTP status code to ASP).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • asp_gateway.py

    r50 r72  
    2020from cherrypy.wsgiapp import wsgiApp 
    2121 
    22 handler(Application, Request, Response).run(wsgiApp) 
     22h = handler(Application, Request, Response) 
     23h.run(wsgiApp) 
     24Response.status = handler.status 
    2325%> 
    2426 
     
    134136        for key, val in self.headers.items(): 
    135137            self.Response.AddHeader(key, val) 
     138     
     139    def start_response(self, *args, **kwargs): 
     140        BaseCGIHandler.start_response(self, *args, **kwargs) 
     141        self.Response.Status = self.status 
    136142