diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-12-31 13:18:57 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-12-31 13:19:34 +0100 |
| commit | 5fdc81d8930b85849a39e550fa54be1cad10d74d (patch) | |
| tree | a9f7be3727fe88b724aa5ee21955c559f8975f95 /tests | |
| parent | 6b4b7da740cea6d1fc7ae7028a357587f3e9d0b3 (diff) | |
[3.1.x] Fixed #32304 -- Fixed prefixing STATIC_URL and MEDIA_URL by SCRIPT_NAME for absolute URLs with no domain.
Thanks Adam Hooper for the report.
Regression in c574bec0929cd2527268c96a492d25223a9fd576.
Backport of e13b71403bd1568abed237858127677144d43d23 from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/settings_tests/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py index 55ca0de524..b397202e9e 100644 --- a/tests/settings_tests/tests.py +++ b/tests/settings_tests/tests.py @@ -577,10 +577,12 @@ class MediaURLStaticURLPrefixTest(SimpleTestCase): set_script_prefix(val) def test_not_prefixed(self): - # Don't add SCRIPT_NAME prefix to valid URLs, absolute paths or None. + # Don't add SCRIPT_NAME prefix to absolute paths, URLs, or None. tests = ( '/path/', 'http://myhost.com/path/', + 'http://myhost/path/', + 'https://myhost/path/', None, ) for setting in ('MEDIA_URL', 'STATIC_URL'): |
