openbsd-ports/www/lighttpd/patches/patch-src_response_c
jasper 5631075d51 - tweak sample config file to chroot(), use kqueue and bind to ipv4 and ipv6
- install documentation

from brad@ (with the docs part from me)
2008-04-16 20:42:35 +00:00

13 lines
604 B
Plaintext

$OpenBSD: patch-src_response_c,v 1.1 2008/04/16 20:42:35 jasper Exp $
--- src/response.c.orig Fri Apr 11 19:36:38 2008
+++ src/response.c Fri Apr 11 19:37:12 2008
@@ -101,7 +101,7 @@ int http_response_write_header(server *srv, connection
if (!have_server) {
if (buffer_is_empty(con->conf.server_tag)) {
BUFFER_APPEND_STRING_CONST(b, "\r\nServer: " PACKAGE_NAME "/" PACKAGE_VERSION);
- } else {
+ } else if (con->conf.server_tag->used > 1) {
BUFFER_APPEND_STRING_CONST(b, "\r\nServer: ");
buffer_append_string_encoded(b, CONST_BUF_LEN(con->conf.server_tag), ENCODING_HTTP_HEADER);
}