From 9f64f34dfef23a15adb23115b74060bfe8a1615f Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 17 Mar 2005 19:20:32 +0000 Subject: [PATCH] Swap compression mode preferences, prefer none over zlib by default --- README | 2 ++ src/comp.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README b/README index 11826d4..3242aeb 100644 --- a/README +++ b/README @@ -8,6 +8,8 @@ Version 0.8 Fix compatability with older versions of OpenSSL + Swapped order of none,zlib compression modes to prefer no compression by default. + Version 0.7 ----------- diff --git a/src/comp.c b/src/comp.c index df8c9ec..87bafab 100644 --- a/src/comp.c +++ b/src/comp.c @@ -272,10 +272,10 @@ static LIBSSH2_COMP_METHOD libssh2_comp_method_zlib = { *********************** */ static LIBSSH2_COMP_METHOD *_libssh2_comp_methods[] = { + &libssh2_comp_method_none, #ifdef LIBSSH2_HAVE_ZLIB &libssh2_comp_method_zlib, #endif /* LIBSSH2_HAVE_ZLIB */ - &libssh2_comp_method_none, NULL };