]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
imagecache: handle HTTP HEAD request correctly (no payload)
authorJaroslav Kysela <perex@perex.cz>
Tue, 30 Aug 2016 16:44:24 +0000 (18:44 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 30 Aug 2016 16:44:24 +0000 (18:44 +0200)
src/webui/webui.c

index abbf36582be8f8466d23b0c685c90d1f5bfd6533..0fa2afd15c8ccc1590aeafc70baaf38590c6087e 100644 (file)
@@ -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;