#17316: settings.APPEND_SLASH (CommonMiddleware) does not work well behind 
multiple
proxies
-------------------------------+--------------------------------------
     Reporter:  dnozay         |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.3
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by aaugustin):

 * needs_docs:   => 0
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Old description:

> - https://code.djangoproject.com/ticket/11877 as well.
> - https://docs.djangoproject.com/en/1.3/ref/request-
> response/#django.http.HttpRequest.get_host
>
> I'm using the MultipleProxyMiddleware middleware.
> settings.APPEND_SLASH defaults to True.
>
> MultipleProxyMiddleware needs to be enabled *before* CommonMiddleware for
> APPEND_SLASH to work.
>
> Maybe all this needs is a few more lines where MultipleProxyMiddleware is
> documented (or directions to put  MultipleProxyMiddleware first would
> work too I guess).

New description:

 - https://code.djangoproject.com/ticket/11877 as well.
 - https://docs.djangoproject.com/en/1.3/ref/request-
 response/#django.http.HttpRequest.get_host

 I'm using the `MultipleProxyMiddleware` middleware.
 `settings.APPEND_SLASH` defaults to `True`.

 `MultipleProxyMiddleware` needs to be enabled *before* `CommonMiddleware`
 for `APPEND_SLASH` to work.

 Maybe all this needs is a few more lines where `MultipleProxyMiddleware`
 is documented (or directions to put  `MultipleProxyMiddleware` first would
 work too I guess).

--

Comment:

 Fixed formatting.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17316#comment:1>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to