--- src/proto_http.c 2011-02-13 10:43:01.374957366 +0100 +++ src/proto_http.c 2011-02-13 10:45:02.150573292 +0100 @@ -601,6 +601,8 @@ idx->used--; hdr->len = 0; /* unused entry */ idx->v[ctx->prev].next = idx->v[ctx->idx].next; + if (idx->tail == ctx->idx) + idx->tail = ctx->prev; ctx->idx = ctx->prev; /* walk back to the end of previous header */ ctx->line -= idx->v[ctx->idx].len + idx->v[cur_idx].cr + 1; ctx->val = idx->v[ctx->idx].len; /* point to end of previous header */