Common middleware PREPEND_WWW broken
|Reported by:||Gonzalo Saavedra||Owned by:||nobody|
|Cc:||Gonzalo Saavedra||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I think theres a bug in CommonMiddleware's PREPEND_WWW and it's not working as expected.
I think the bug was introduced after , it will prepend 'www.' only if request.path_info doesn't have a trailing slash. I have reproduced this running under the dev web server and apache. Patch attached.
Change History (11)
comment:5 Changed 8 years ago by
|Cc:||Gonzalo Saavedra added|
|Patch needs improvement:||unset|