]> 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:43:18 +0000 (20:43 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 29 May 2024 00:43:18 +0000 (20:43 -0400)
CHANGES.md
cups/http.c

index 40536a21e8c3a037c899a85c2e6799798ec68590..0d1db365a5a2b4398556aeadf8218bb63c91f6f6 100644 (file)
@@ -89,6 +89,7 @@ Changes in CUPS v2.5b1 (TBA)
 - Fixed encoding of IPv6 addresses in HTTP requests (Issue #903)
 - Fixed encoding of `IPP_TAG_EXTENSION` values in IPP messages (Issue #913)
 - Fixed sending response headers to client (Issue #927)
+- Fixed `Host` header regression (Issue #967)
 - Fixed CGI program initialization and validation of form checkbox and text
   fields.
 - Fixed finishing support in ippeveps.
index 29a51e0dc96ed7aeffe9e7166f24612163148b59..66ca8eefe74ee9270687eb676e9a2411540e4aa3 100644 (file)
@@ -4019,11 +4019,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, httpAddrGetPort(http->hostaddr)) < 1)
        {
          http->status = HTTP_STATUS_ERROR;