Commits

Sylvain Hellegouarch  committed 6e809bc

req doesn't exist, must use ir.request instead

  • Participants
  • Parent commits e813251

Comments (0)

Files changed (1)

File cherrypy/_cpwsgi.py

                     if ir.query_string:
                         new_uri += "?" + ir.query_string
                     if new_uri in redirections:
-                        req.close()
+                        ir.request.close()
                         raise RuntimeError("InternalRedirector visited the "
                                            "same URL twice: %r" % new_uri)