diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-25 07:30:18 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-25 10:30:18 -0400 |
| commit | 8c3e0eb1c16abbcded3503b4ea3473b353520f61 (patch) | |
| tree | 1536a0599e8cbae25b3079d27571593fcb59613f /django/http/request.py | |
| parent | abeed587b119197270a885830619694b2c5ba1f1 (diff) | |
Normalized spelling of "lowercase" and "lowercased".
Diffstat (limited to 'django/http/request.py')
| -rw-r--r-- | django/http/request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/http/request.py b/django/http/request.py index fdd1cf8c67..7dc758d268 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -538,7 +538,7 @@ def split_domain_port(host): """ Return a (domain, port) tuple from a given host. - Returned domain is lower-cased. If the host is invalid, the domain will be + Returned domain is lowercased. If the host is invalid, the domain will be empty. """ host = host.lower() @@ -566,7 +566,7 @@ def validate_host(host, allowed_hosts): ``example.com`` and any subdomain), ``*`` matches anything, and anything else must match exactly. - Note: This function assumes that the given host is lower-cased and has + Note: This function assumes that the given host is lowercased and has already had the port, if any, stripped off. Return ``True`` for a valid host, ``False`` otherwise. |
