diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:25:24 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-08 11:25:24 +0000 |
commit | 6e8be2a897064d055996b3cc81aee7d9bb1179d9 (patch) | |
tree | 9ac5b667c9a7dd10053203cf7b28f868e537f43b /url.c | |
parent | [w3m-dev 03017] URI scheme is case insensitive (diff) | |
download | w3m-6e8be2a897064d055996b3cc81aee7d9bb1179d9.tar.gz w3m-6e8be2a897064d055996b3cc81aee7d9bb1179d9.zip |
add comments
Diffstat (limited to '')
-rw-r--r-- | url.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 <stdio.h> #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) { |