From: Michael R Sweet Date: Wed, 29 May 2024 00:43:18 +0000 (-0400) Subject: Revert Host: header change (Issue #967) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d91acd4429ff85958545820e7c71c33fcab6884e;p=thirdparty%2Fcups.git Revert Host: header change (Issue #967) --- diff --git a/CHANGES.md b/CHANGES.md index 40536a21e8..0d1db365a5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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. diff --git a/cups/http.c b/cups/http.c index 29a51e0dc9..66ca8eefe7 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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;