Skip to content

Commit

Permalink
scheduler: Fix removing Server header from HTTP if requested
Browse files Browse the repository at this point in the history
Fixes #1111
  • Loading branch information
zdohnal committed Dec 12, 2024
1 parent 331a202 commit a1169ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Changes in CUPS v2.4.12 (YYYY-MM-DD)
- Fixed a compressed file error handling bug (Issue #1070)
- Fixed a bug in the make-and-model whitespace trimming code (Issue #1096)
- Fixed a removal of IPP Everywhere permanent queue if installation failed (Issue #1102)
- Fixed `ServerToken None` in scheduler (Issue #1111)
- Fixed the default User-Agent string.
- Fixed a recursion issue in `ippReadIO`.

Expand Down
3 changes: 3 additions & 0 deletions cups/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -3650,6 +3650,9 @@ http_add_field(http_t *http, /* I - HTTP connection */
{
if (field < HTTP_FIELD_ACCEPT_ENCODING)
http->_fields[field][0] = '\0';
else if (field == HTTP_FIELD_SERVER)
http->fields[HTTP_FIELD_SERVER] = (char*)calloc(1, sizeof(char));

return;
}

Expand Down

0 comments on commit a1169ec

Please sign in to comment.