diff options
Diffstat (limited to 'cups/http-addr.c')
-rw-r--r-- | cups/http-addr.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cups/http-addr.c b/cups/http-addr.c index dd61d4a0..12d13a69 100644 --- a/cups/http-addr.c +++ b/cups/http-addr.c @@ -8,7 +8,7 @@ * property of Apple Inc. and are protected by Federal copyright * law. Distribution and use rights are outlined in the file "LICENSE.txt" * which should have been included with this file. If this file is - * file is missing or damaged, see the license at "http://www.cups.org/". + * missing or damaged, see the license at "http://www.cups.org/". * * This file is subject to the Apple OS-Developed Software exception. */ @@ -872,6 +872,18 @@ httpGetHostname(http_t *http, /* I - HTTP connection or NULL */ } /* + * Convert the hostname to lowercase as needed... + */ + + if (s[0] != '/') + { + char *ptr; /* Pointer into string */ + + for (ptr = s; *ptr; ptr ++) + *ptr = (char)_cups_tolower((int)*ptr); + } + + /* * Return the hostname with as much domain info as we have... */ |