X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=proc.c;h=9c4b685ad1bc75c11dc7eac93255cbb0f2168d4c;hp=5be6232e79849843ef6d1422af3a29a3a683aee0;hb=d6366570bf706f3970b7f106a1ccd49b584559cf;hpb=7823ad9590d0ec54bca6f637e0d8b14794bb49c0 diff --git a/proc.c b/proc.c index 5be6232..9c4b685 100644 --- a/proc.c +++ b/proc.c @@ -224,6 +224,9 @@ static void proc_handle_header_end(struct relay *r) ustream_printf(cl->us, "%s: %s\r\n", blobmsg_name(cur), blobmsg_data(cur)); ustream_printf(cl->us, "\r\n"); + + if (cl->request.method == UH_HTTP_MSG_HEAD) + r->skip_data = true; } static void proc_write_close(struct client *cl)