From 1b2cc3bb66a486263828f6741e35677a07feed5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Mon, 13 Jul 2009 13:48:29 +0000 Subject: [PATCH] Show "no uri specified -> 400" error only when "debug.log-request-header-on-error" is enabled (fixes #2030) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2583 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + src/request.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1d0642af..2379fd2b 100644 --- a/NEWS +++ b/NEWS @@ -18,6 +18,7 @@ NEWS * cmake: Add -export-dynamic to link flags, fixes build on FreeBSD * Set FD_CLOEXEC for bound sockets before pipe-logger forks (fixes #2026) * Reset ignored signals to SIG_DFL before exec() in fastcgi/scgi (fixes #2029) + * Show "no uri specified -> 400" error only when "debug.log-request-header-on-error" is enabled (fixes #2030) - 1.4.23 - 2009-06-19 * Added some extra warning options in cmake and fix the resulting warnings (unused/static functions) diff --git a/src/request.c b/src/request.c index c5762e40..d8fe5e19 100644 --- a/src/request.c +++ b/src/request.c @@ -540,8 +540,8 @@ int http_request_parse(server *srv, connection *con) { con->response.keep_alive = 0; con->keep_alive = 0; - log_error_write(srv, __FILE__, __LINE__, "s", "no uri specified -> 400"); if (srv->srvconf.log_request_header_on_error) { + log_error_write(srv, __FILE__, __LINE__, "s", "no uri specified -> 400"); log_error_write(srv, __FILE__, __LINE__, "Sb", "request-header:\n", con->request.request);