From d21c0a79df949a31f337094b8e169d04a939a9dc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 21 Dec 2003 11:33:29 +0000 Subject: [PATCH] HTTP header lookup case insensitive --- src/seshigh.c | 5 ++--- src/zgdu.c | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/seshigh.c b/src/seshigh.c index afc1e82..7675581 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.5 2003-12-20 00:51:19 adam Exp $ + * $Id: seshigh.c,v 1.6 2003-12-21 11:33:29 adam Exp $ */ /* @@ -726,7 +726,6 @@ static void srw_bend_search(association *assoc, request *req, } } - static void srw_bend_explain(association *assoc, request *req, Z_SRW_explainRequest *srw_req, Z_SRW_explainResponse *srw_res) @@ -1540,7 +1539,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.5 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.6 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, diff --git a/src/zgdu.c b/src/zgdu.c index a37a96e..b38233f 100644 --- a/src/zgdu.c +++ b/src/zgdu.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: zgdu.c,v 1.1 2003-10-27 12:21:36 adam Exp $ + * $Id: zgdu.c,v 1.2 2003-12-21 11:33:29 adam Exp $ */ #include @@ -96,7 +96,7 @@ void z_HTTP_header_add(ODR o, Z_HTTP_Header **hp, const char *n, const char *z_HTTP_header_lookup(Z_HTTP_Header *hp, const char *n) { for (; hp; hp = hp->next) - if (!strcmp(hp->name, n)) + if (!yaz_matchstr(hp->name, n)) return hp->value; return 0; } -- 1.7.10.4