diff --git a/src/proto_http.c b/src/proto_http.c index 3d68da89d..da3935c3e 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -2028,7 +2028,6 @@ int select_compression_request_header(struct session *s, struct buffer *req) } s->comp_algo = NULL; - return 0; } @@ -2138,14 +2137,10 @@ int select_compression_response_header(struct session *s, struct buffer *res) trash.str[trash.len] = '\0'; http_header_add_tail2(&txn->rsp, &txn->hdr_idx, trash.str, trash.len); } - return 1; fail: - if (s->flags & SN_COMP_READY) - s->comp_algo->end(&s->comp_ctx); s->comp_algo = NULL; - s->flags &= ~SN_COMP_READY; return 0; }