From 04e119094588963fb709e07b749eee70aced47d2 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 30 Aug 2016 18:44:24 +0200 Subject: [PATCH] imagecache: handle HTTP HEAD request correctly (no payload) --- src/webui/webui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index abbf36582..0fa2afd15 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1708,7 +1708,7 @@ page_imagecache(http_connection_t *hc, const char *remain, void *opaque) pthread_mutex_lock(&hc->hc_fd_lock); http_send_header(hc, 200, NULL, st.st_size, 0, NULL, 10, 0, NULL, NULL); - while (1) { + while (!hc->hc_no_output) { c = read(fd, buf, sizeof(buf)); if (c <= 0) break; -- 2.47.3