]> git.pld-linux.org Git - packages/lighttpd.git/blobdiff - lighttpd-branding.patch
mod_deflate subsumes and replaces mod_compress.
[packages/lighttpd.git] / lighttpd-branding.patch
index 44f4217284029109645971e7d53beb58d44ca73d..ab691cec9fdf6ef5634bd8ffc9932c3a72243044 100644 (file)
@@ -1,11 +1,11 @@
---- lighttpd-1.4.19/src/response.c~    2008-09-19 17:51:25.000000000 +0300
-+++ lighttpd-1.4.19/src/response.c     2008-09-19 17:54:05.496023995 +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
+@@ -25,7 +25,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_NAME "/" PACKAGE_VERSION));
-+                      buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION " (PLD 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 = { CONST_STR_LEN(PACKAGE_DESC)+1, 0 };
+ #include <sys/types.h>
This page took 0.103679 seconds and 4 git commands to generate.