- Now use a 60 second timeout for reading USB backchannel data (Issue #160)
- The USB backend now tries harder to find a serial number (Issue #170)
- Fixed `@IF(name)` handling in `cupsd.conf` (Apple #5918)
+- Now always pass "localhost" in the `Host:` header when talking over a domain
+ socket or the loopback interface (Issue #185)
- Fixed a job history update issue in the scheduler (Issue #187)
- Fixed `job-pages-per-set` value for duplex print jobs.
- Documentation fixes (Issue #92, Issue #163, Issue #177, Issue #184)
}
for (i = 0; i < HTTP_FIELD_MAX; i ++)
+ {
if ((value = httpGetField(http, i)) != NULL && *value)
{
DEBUG_printf(("5http_send: %s: %s", http_fields[i], value));
if (i == HTTP_FIELD_HOST)
{
- if (httpPrintf(http, "Host: %s:%d\r\n", value,
- httpAddrPort(http->hostaddr)) < 1)
+ // 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;
return (-1);
return (-1);
}
}
+ }
if (http->cookie)
if (httpPrintf(http, "Cookie: $Version=0; %s\r\n", http->cookie) < 1)