diff options
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. |
