]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: compression: don't compress when no data
authorWilliam Lallemand <wlallemand@exceliance.fr>
Mon, 19 Nov 2012 11:35:37 +0000 (12:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Nov 2012 13:57:29 +0000 (14:57 +0100)
commitbf3ae61789e21f4ed48160e14ce7fb03bf3897fa
tree5a4e8b600d68546e43e7259918b902246484ff45
parentb97b6190e127ac034946dca80349c649e423d329
MEDIUM: compression: don't compress when no data

This patch makes changes in the http_response_forward_body state
machine. It checks if the compress algorithm had consumed data before
swapping the temporary and the input buffer. So it prevents null sized
zlib chunks.
include/proto/compression.h
include/types/compression.h
src/compression.c
src/proto_http.c