mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-05 09:30:35 +03:00
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:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user