~ubuntuone-pqm-team/python-timeline-django/stable

Viewing all changes in revision 20.

  • Committer: Ricardo Kirkner
  • Author(s): James Westby
  • Date: 2013-09-03 12:07:36 UTC
  • mfrom: (17.1.4 start-end-request)
  • Revision ID: ricardo.kirkner@canonical.com-20130903120736-hfwekrye1gp74ajj
Save the environ before sending the wsgi_request_started signal.

Code that listens to the wsgi_request_started signal may want to use the
environ, but instead of using the one passed to the signal, it may
call get_environ() to get the saved version. That has to be the
current request's environ, not any previous request, so save the environ
before triggering the signal.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: