diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-01-06 15:36:46 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-01-06 15:36:46 +0000 |
commit | cb791788d1339ef54dc9248d000fdfcc1a6fbcf0 (patch) | |
tree | 0c5571b9352a7d593195a1d378d9d4ed6142f39d /src/ne_compress.c | |
parent | c745b85ef82e85a4d362fc05e552fbc553f9931a (diff) | |
download | neon-cb791788d1339ef54dc9248d000fdfcc1a6fbcf0.tar.gz |
* src/ne_gnutls.c, src/ne_openssl.c, src/ne_basic.c,
src/ne_compress.c, src/ne_uri.c, src/ne_auth.c, src/ne_locks.c: Use
ne_strcasecmp in favour of locale-dependent strcasecmp throughout.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@831 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_compress.c')
-rw-r--r-- | src/ne_compress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ne_compress.c b/src/ne_compress.c index 516cbd8..a8a573a 100644 --- a/src/ne_compress.c +++ b/src/ne_compress.c @@ -1,6 +1,6 @@ /* Handling of compressed HTTP responses - Copyright (C) 2001-2005, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 2001-2006, Joe Orton <joe@manyfish.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -248,7 +248,7 @@ static int gz_reader(void *ud, const char *buf, size_t len) switch (ctx->state) { case NE_Z_BEFORE_DATA: hdr = ne_get_response_header(ctx->request, "Content-Encoding"); - if (hdr && strcasecmp(hdr, "gzip") == 0) { + if (hdr && ne_strcasecmp(hdr, "gzip") == 0) { /* response was truncated: return error. */ break; } @@ -283,7 +283,7 @@ static int gz_reader(void *ud, const char *buf, size_t len) case NE_Z_BEFORE_DATA: /* work out whether this is a compressed response or not. */ hdr = ne_get_response_header(ctx->request, "Content-Encoding"); - if (hdr && strcasecmp(hdr, "gzip") == 0) { + if (hdr && ne_strcasecmp(hdr, "gzip") == 0) { int ret; NE_DEBUG(NE_DBG_HTTP, "compress: got gzipped stream.\n"); |