X-Git-Url: https://git.tld-linux.org/?p=packages%2Flighttpd.git;a=blobdiff_plain;f=lighttpd-branding.patch;h=ce2ac9ad22be00e6515fd7c9dcd5575fc9e23065;hp=c0e00629782e825a700f13339a0035c67931a2e2;hb=HEAD;hpb=d8e2ebd017e29b697f504e899cfab77d5b410f87 diff --git a/lighttpd-branding.patch b/lighttpd-branding.patch index c0e0062..ce2ac9a 100644 --- a/lighttpd-branding.patch +++ b/lighttpd-branding.patch @@ -1,11 +1,12 @@ ---- lighttpd-1.4.22/src/response.c~ 2009-04-17 00:50:21.000000000 +0300 -+++ lighttpd-1.4.22/src/response.c 2009-04-17 00:51:22.174367972 +0300 -@@ -105,7 +105,7 @@ +--- lighttpd-1.4.56/src/server.c~ 2020-11-30 00:32:01.000000000 +0200 ++++ lighttpd-1.4.56/src/server.c 2020-11-30 08:29:32.022380561 +0200 +@@ -26,7 +26,7 @@ + # define REPO_VERSION "" + #endif - if (!have_server) { - if (buffer_is_empty(con->conf.server_tag)) { -- buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_DESC)); -+ buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_DESC " (TLD Linux)")); - } else if (con->conf.server_tag->used > 1) { - buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: ")); - buffer_append_string_encoded(b, CONST_BUF_LEN(con->conf.server_tag), ENCODING_HTTP_HEADER); +-#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION ++#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION " (PLD Linux)" + static const buffer default_server_tag = + { PACKAGE_DESC "\0server", sizeof(PACKAGE_DESC), 0 }; + +