From 6ab7851b7969affc130a524605968d01bff53acc Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 1 Feb 2002 05:01:47 +0000 Subject: [w3m-dev 02968] fix problem with Netscape-Enterprise WWW-authenticate * file.c (findAuthentication): token is case insensitive From: Fumitoshi UKAI --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 7b27136..eae0724 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.57 2002/01/31 18:40:16 ukai Exp $ */ +/* $Id: file.c,v 1.58 2002/02/01 05:01:47 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -1251,7 +1251,7 @@ findAuthentication(struct http_auth *hauth, Buffer *buf, char *auth_field) SKIP_BLANKS(p); p0 = p; for (ha = &www_auth[0]; ha->scheme != NULL; ha++) { - if (strncmp(p, ha->scheme, strlen(ha->scheme)) == 0) { + if (strncasecmp(p, ha->scheme, strlen(ha->scheme)) == 0) { if (hauth->pri < ha->pri) { *hauth = *ha; p += strlen(ha->scheme); -- cgit v1.2.3