Commits

Robert Brewer  committed 3acdc15

Fix for #505 (cherrypy.thread_data cleared on Request.close).

  • Participants
  • Parent commits 7ecb021

Comments (0)

Files changed (2)

File cherrypy/_cphttptools.py

             self.closed = True
             applyFilters('on_end_request', failsafe=True)
             cherrypy.serving.__dict__.clear()
-            cherrypy.thread_data.__dict__.clear()
     
     def run(self, requestLine, headers, rfile):
         """Process the Request.

File cherrypy/test/test_http.py

     
     class Root:
         def index(self, *args, **kwargs):
-            cherrypy.thread_data.thing = data
+            cherrypy.request.thing = data
             return "Hello world!"
         index.exposed = True