diff --git a/src/webui/webui.c b/src/webui/webui.c index 7540acfc7d..40a3891346 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1395,7 +1395,7 @@ page_imagecache(http_connection_t *hc, const char *remain, void *opaque) 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;