From: Jo-Philipp Wich Date: Fri, 24 Dec 2010 22:03:34 +0000 (+0000) Subject: uhttpd: allow lowercase http header fields (#8513) X-Git-Tag: reboot~17966 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f5b3f741cefd6e58ce9f9c90e327b5c8a2ce6c3b;p=openwrt%2Fstaging%2Flynxis.git uhttpd: allow lowercase http header fields (#8513) SVN-Revision: 24823 --- diff --git a/package/uhttpd/Makefile b/package/uhttpd/Makefile index b639c007b2..a0b7d24ebf 100644 --- a/package/uhttpd/Makefile +++ b/package/uhttpd/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=uhttpd -PKG_RELEASE:=19 +PKG_RELEASE:=20 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DEPENDS := libcyassl liblua diff --git a/package/uhttpd/src/uhttpd.c b/package/uhttpd/src/uhttpd.c index 491452b634..2c7755f8da 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]; }