]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: compression: add a distinction between UA- and config- algorithms
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2015 15:40:46 +0000 (16:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2015 15:46:38 +0000 (16:46 +0100)
commit615105e7e88843c43f052a1e2866eb31ccc67cb3
tree64c3c210b26e6a568ccdf4acd79a944102ec8c34
parent9f640a1eab4bc5ec4ed89a21e670b7ed4388d664
MEDIUM: compression: add a distinction between UA- and config- algorithms

Thanks to MSIE/IIS, the "deflate" name is ambigous. According to the RFC
it's a zlib-wrapped deflate stream, but IIS used to send only a raw deflate
stream, which is the only format MSIE understands for "deflate". The other
widely used browsers do support both formats. For this reason some people
prefer to emit a raw deflate stream on "deflate" to serve more users even
it that means violating the standards. Haproxy only follows the standard,
so they cannot do this.

This patch makes it possible to have one algorithm name in the configuration
and another one in the protocol. This will make it possible to have a new
configuration token to add a different algorithm so that users can decide if
they want a raw deflate or the standard one.
include/types/compression.h
src/compression.c
src/haproxy.c
src/proto_http.c