compression: send zlib before none

As the list of algorithms in a preferred order we should send zlib
before none to increase the chances that the server will let us do
compression.
This commit is contained in:
Daniel Stenberg 2010-10-08 17:06:55 +02:00
parent 59636cc11e
commit 77a9335515

View File

@ -331,10 +331,10 @@ static const LIBSSH2_COMP_METHOD comp_method_zlib = {
*********************** */
static const LIBSSH2_COMP_METHOD *comp_methods[] = {
&comp_method_none,
#ifdef LIBSSH2_HAVE_ZLIB
&comp_method_zlib,
#endif /* LIBSSH2_HAVE_ZLIB */
&comp_method_none,
NULL
};