Commits

Anonymous committed a22a5ec

Return correct protocol status from our fast_cgi handler, this hopefully closes #2106.

  • Participants
  • Parent commits 6423ae0
  • Branches trunk

Comments (0)

Files changed (1)

trac/web/fcgi_frontend.py

-# -*- coding: iso8859-1 -*-
+# -*- coding: utf-8 -*-
 #
 # Copyright (C) 2005 Edgewall Software
 # Copyright (C) 2005 Matthew Good <trac@matt-good.net>
 
     if not env:
         send_project_index(req, os.environ)
-        return
+        return _fcgi.CGI_REQUEST_COMPLETE, 0
 
     try:  
         dispatch_request(req.path_info, req, env)
     except Exception, e:
         send_pretty_error(e, env, req)
+    return _fcgi.FCGI_REQUEST_COMPLETE, 0