$OpenBSD: patch-src_mod_proxy_c,v 1.5 2010/09/17 21:59:43 sthen Exp $
--- src/mod_proxy.c.orig	Fri Sep 17 17:50:54 2010
+++ src/mod_proxy.c	Fri Sep 17 17:52:17 2010
@@ -724,9 +724,9 @@ static int proxy_demux_response(server *srv, handler_c
 				con->file_started = 1;
 				if (blen) {
 					http_chunk_append_mem(srv, con, c + 4, blen + 1);
-					joblist_append(srv, con);
 				}
 				hctx->response->used = 0;
+				joblist_append(srv, con);
 			}
 		} else {
 			http_chunk_append_mem(srv, con, hctx->response->ptr, hctx->response->used);
