From 6e8be2a897064d055996b3cc81aee7d9bb1179d9 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 8 Feb 2002 11:25:24 +0000 Subject: add comments --- url.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/url.c b/url.c index c3287ad..50db641 100644 --- a/url.c +++ b/url.c @@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.42 2002/02/08 11:20:14 ukai Exp $ */ +/* $Id: url.c,v 1.43 2002/02/08 11:25:24 ukai Exp $ */ #include #include "config.h" #include "fm.h" @@ -2075,6 +2075,12 @@ searchURIMethods(ParsedURL *pu) if (scheme == NULL) return NULL; + /* + * RFC2396 3.1. Scheme Component + * For resiliency, programs interpreting URI should treat upper case + * letters as equivalent to lower case in scheme names (e.g., allow + * "HTTP" as well as "http"). + */ for (i = 0; (ump = urimethods[i]) != NULL; i++) { for (; ump->item1 != NULL; ump++) { if (strcasecmp(ump->item1, scheme->ptr) == 0) { -- cgit v1.2.3