]> git.pld-linux.org Git - packages/lighttpd.git/commitdiff
use existing solutions to set branding
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Oct 2017 11:32:32 +0000 (14:32 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 22 Oct 2017 12:01:59 +0000 (15:01 +0300)
this changes behaviour that only default Server header is modified for
branding, allowing users to have complete support when overriding.

this is more appropriate solution anyway

lighttpd-branding.patch

index 28f239cda91e8a63bcf960b2875bb1616252b561..55cc9cf4d833708ea5f065210d8bd73041984d27 100644 (file)
@@ -1,11 +1,11 @@
---- lighttpd-1.4.40/src/response.c~    2016-07-16 13:06:16.000000000 +0300
-+++ lighttpd-1.4.40/src/response.c     2016-07-25 14:16:59.131926942 +0300
-@@ -111,6 +111,8 @@
-               if (!buffer_string_is_empty(con->conf.server_tag)) {
-                       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);
-+              } else {
-+                      buffer_append_string_len(b, CONST_STR_LEN("\r\nServer: " PACKAGE_DESC " (PLD Linux)"));
-               }
-       }
+--- lighttpd-1.4.46/src/server.c~      2017-10-21 22:36:29.000000000 +0300
++++ lighttpd-1.4.46/src/server.c       2017-10-22 14:38:39.530007753 +0300
+@@ -25,7 +25,7 @@
+ # define REPO_VERSION ""
+ #endif
  
+-#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION
++#define PACKAGE_DESC PACKAGE_NAME "/" PACKAGE_VERSION REPO_VERSION " (PLD Linux)"
+ #include <sys/types.h>
+ #include <sys/time.h>
This page took 0.040144 seconds and 4 git commands to generate.