#28609: Original request URI is not available to development server
-------------------------------------+-------------------------------------
               Reporter:  Jay Lynch  |          Owner:  nobody
                   Type:             |         Status:  new
  Uncategorized                      |
              Component:  Core       |        Version:  1.11
  (Management commands)              |       Keywords:  server http-server
               Severity:  Normal     |  runserver
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When using the default development server using `manage.py runserver` the
 value `settings.WSGI_APPLICATION` may be used to configure the WSGI
 application which is executed.

 If trying to use this feature to apply WSGI middleware, however, there is
 no way to access the original URI of the request, leaving the user unable
 to detect certain specific URLs they may wish to respond to, eg:

 `https://localhost:8000/search/test+search` and
 `https://localhost:8000/search/test%2Bsearch` appear identical to the WSGI
 application.

 In production this is typically addressed with a uWSGI parameter passing
 the original request URI as `REQUEST_URI`, the WSGIRequestHandler has the
 information and can perform the same function.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28609>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.06b0e1271e24bed66cbd3fde3593e803%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to