Skip to content

Commit

Permalink
imagecache: handle HTTP HEAD request correctly (no payload)
Browse files Browse the repository at this point in the history
  • Loading branch information
perexg committed Aug 30, 2016
1 parent 52cbd5b commit e5400e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/webui.c
Expand Up @@ -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;
Expand Down

0 comments on commit e5400e2

Please sign in to comment.