summaryrefslogtreecommitdiff
path: root/package/uhttpd/src
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-12-24 22:03:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-12-24 22:03:34 +0000
commitf5b3f741cefd6e58ce9f9c90e327b5c8a2ce6c3b (patch)
tree7a773b11c67c6eb80002a1e85d79679c4eb000e7 /package/uhttpd/src
parent61e492d3163e23e500f4d984980242b050f2bbcb (diff)
downloadmtk-20170518-f5b3f741cefd6e58ce9f9c90e327b5c8a2ce6c3b.zip
mtk-20170518-f5b3f741cefd6e58ce9f9c90e327b5c8a2ce6c3b.tar.gz
mtk-20170518-f5b3f741cefd6e58ce9f9c90e327b5c8a2ce6c3b.tar.bz2
uhttpd: allow lowercase http header fields (#8513)
SVN-Revision: 24823
Diffstat (limited to 'package/uhttpd/src')
-rw-r--r--package/uhttpd/src/uhttpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/uhttpd/src/uhttpd.c b/package/uhttpd/src/uhttpd.c
index 491452b..2c7755f 100644
--- a/package/uhttpd/src/uhttpd.c
+++ b/package/uhttpd/src/uhttpd.c
@@ -339,8 +339,8 @@ static struct http_request * uh_http_header_parse(struct client *cl, char *buffe
hdrdata = &buffer[i+2];
}
- /* have no name and found [A-Z], start of name */
- else if( !hdrname && isalpha(buffer[i]) && isupper(buffer[i]) )
+ /* have no name and found [A-Za-z], start of name */
+ else if( !hdrname && isalpha(buffer[i]) )
{
hdrname = &buffer[i];
}