From 049e842399c7d550a1bbded8bbf65921385902a0 Mon Sep 17 00:00:00 2001 From: Egor Ivanov Date: Tue, 23 Apr 2013 20:31:21 +0400 Subject: [PATCH] Optimization for case when no web forward is configured. --- darkhttpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darkhttpd.c b/darkhttpd.c index 893782e..08c6963 100644 --- a/darkhttpd.c +++ b/darkhttpd.c @@ -1759,7 +1759,7 @@ static void process_get(struct connection *conn) { } /* test the host against web forward options */ - { + if (forward_map) { char *host = parse_field(conn, "Host: "); if (host) { size_t i;