- Added a title with device uri for found network printers (Issues #402, #393)
- Fixed configuration on RISC-V machines (Issue #404)
-- Fixed the `device_uri` invalid pointer for driverless printers with `.local` hostname (Issue #419)
+- Fixed the `device_uri` invalid pointer for driverless printers with `.local`
+ hostname (Issue #419)
- Fixed an OpenSSL crash bug (Issue #409)
- Use localhost when printing via printer application (Issue #353)
+- Now localize HTTP responses using the Content-Language value (Issue #426)
Changes in CUPS v2.4.2 (26th May 2022)
{
http_encoding_t old_encoding; /* Old data_encoding value */
off_t old_remaining; /* Old data_remaining value */
+ cups_lang_t *lang; /* Response language */
/*
"identity");
#endif /* HAVE_LIBZ */
+ /*
+ * Get the response language, if any...
+ */
+
+ lang = cupsLangGet(http->fields[HTTP_FIELD_CONTENT_LANGUAGE]);
+
/*
* Send the response header...
*/
old_remaining = http->data_remaining;
http->data_encoding = HTTP_ENCODING_FIELDS;
- if (httpPrintf(http, "HTTP/%d.%d %d %s\r\n", http->version / 100, http->version % 100, (int)status, httpStatus(status)) < 0)
+ if (httpPrintf(http, "HTTP/%d.%d %d %s\r\n", http->version / 100, http->version % 100, (int)status, _httpStatus(lang, status)) < 0)
{
http->status = HTTP_STATUS_ERROR;
return (-1);