move example to different port
[multitaskhttpd.git] / httpd.py
index 7daf0546ce757a4cfa19f81e5a95d240099a7637..d86c3bece9c7e4b661897c216c71ab25d1f3984a 100644 (file)
--- a/httpd.py
+++ b/httpd.py
@@ -507,7 +507,8 @@ class HTTPServer(object):
                         if _debug:
                             print methodname, dir(inst)
                         method = getattr(inst, methodname, None)
-                        result = method(client, msg)
+                        yield method(client, msg)
+                        result = None
                         close_connection = msg.close_connection
                         if _debug:
                             print "close connection", close_connection