From: Jaroslav Kysela Date: Tue, 30 Aug 2016 16:44:24 +0000 (+0200) Subject: imagecache: handle HTTP HEAD request correctly (no payload) X-Git-Tag: v4.2.1~331 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04e119094588963fb709e07b749eee70aced47d2;p=thirdparty%2Ftvheadend.git imagecache: handle HTTP HEAD request correctly (no payload) --- 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;