]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Revert Host: header change (Issue #967)
authorMichael R Sweet <msweet@msweet.org>
Wed, 29 May 2024 00:44:04 +0000 (20:44 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 29 May 2024 00:44:04 +0000 (20:44 -0400)
CHANGES.md
cups/http.c

index 5713f3c8da06094511fb63b08f550aa9e3a27752..c8349081d4c1ff4085116cabbe1333a2b600fdb9 100644 (file)
@@ -9,6 +9,7 @@ Changes in CUPS v2.4.9 (TBA)
   extension.
 - Really raised `cups_enum_dests()` timeout for listing available IPP printers
   (Issue #751)...
+- Fixed `Host` header regression (Issue #967)
 
 
 Changes in CUPS v2.4.8 (2024-04-26)
index 45b95b5e3120e352a23b7f5d2ff6e3093d9a9980..ec772bf8c48a23bc589ae094941a8c52742ab99b 100644 (file)
@@ -4451,11 +4451,6 @@ http_send(http_t       *http,            /* I - HTTP connection */
 
       if (i == HTTP_FIELD_HOST)
       {
-        // Issue #185: Use "localhost" for the loopback addresses to work
-        // around an Avahi bug...
-        if (httpAddrLocalhost(http->hostaddr))
-          value = "localhost";
-
        if (httpPrintf(http, "Host: %s:%d\r\n", value, httpAddrPort(http->hostaddr)) < 1)
        {
          http->status = HTTP_STATUS_ERROR;