From f4c29af542bbded2fe36d9bdc80808c3a7f5d92b Mon Sep 17 00:00:00 2001 From: m0gg Date: Sun, 10 Dec 2006 19:21:05 +0000 Subject: nhttp client fix and documentation update --- nanohttp/nanohttp-common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nanohttp/nanohttp-common.c') diff --git a/nanohttp/nanohttp-common.c b/nanohttp/nanohttp-common.c index d552a75..a7f7f50 100644 --- a/nanohttp/nanohttp-common.c +++ b/nanohttp/nanohttp-common.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-common.c,v 1.35 2006/12/09 09:04:16 m0gg Exp $ +* $Id: nanohttp-common.c,v 1.36 2006/12/10 19:21:06 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -225,11 +225,12 @@ hpairnode_get_ignore_case(hpair_t * pair, const char *key) log_error1("key is NULL"); return NULL; } + while (pair != NULL) { if (pair->key != NULL) { - if (strcasecmp(pair->key, key)) + if (!strcasecmp(pair->key, key)) { return pair->value; } -- cgit v1.1-32-gdbae