Skip to content

Commit

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

0 comments on commit 04e1190

Please sign in to comment.