Fixed #9199 -- We were erroneously only prepending "www" to the domain if wemastertrunkorigin/trunkrepo/masterrepo/trunk
commitca77d54a5c2a645d96f8e451d094a9f0ef1164d2
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 7 Oct 2008 08:22:50 +0000 (7 08:22 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Tue, 7 Oct 2008 08:22:50 +0000 (7 08:22 +0000)
treec9c5fd0dc1fc92798fda0b65da91c8463917e284
parent65546a505023dc06d0b06971c44efee36c172628
Fixed #9199 -- We were erroneously only prepending "www" to the domain if we
also needed to append a slash (when PREPEND_WWW=True).

Based on a patch and tests from gonz. Thanks.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/middleware/common.py
tests/regressiontests/middleware/tests.py