]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-branding.patch
Up to 1.4.65; modules removed upstream with this release: cml, flv_streaming, trigger...
[packages/lighttpd.git] / lighttpd-branding.patch
index 42540c3bb0748de318abe3b5490753dc203a2dff..ce2ac9ad22be00e6515fd7c9dcd5575fc9e23065 100644 (file)
@@ -1,11 +1,12 @@
---- lighttpd-1.4.18/src/response.c~    2007-11-18 23:35:26.000000000 +0200
-+++ lighttpd-1.4.18/src/response.c     2007-11-18 23:41:29.442541855 +0200
-@@ -98,7 +98,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_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION);
-+                      BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION " (PLD Linux)");
-               } else {
-                       BUFFER_APPEND_STRING_CONST(b, "\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 };
+
This page took 0.064272 seconds and 4 git commands to generate.