remove whitespace at end of header keys

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2861 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.32 lighttpd-1.4.32
Stefan Bühler 11 years ago
parent 6edfc40f93
commit 79fed4ec04

@ -15,6 +15,7 @@ NEWS
* tests: make sure mod_proxy doesn't leave running processes (fixes #2435, thx kibi)
* mod_extforward: log address of untrusted proxy with debug.log-request-handling
* fix DoS in Connection header value split (reported by Jesse Sipprell, CVE-2012-5533)
* remove whitespace at end of header keys
- 1.4.31 - 2012-05-31
* [ssl] fix segfault in counting renegotiations for openssl versions without TLSEXT/SNI (thx carpii for reporting)

@ -643,10 +643,11 @@ int http_request_parse(server *srv, connection *con) {
/* skip WS */
continue;
case ':':
/* ok, done */
/* ok, done; handle the colon the usual way */
i += j - 1;
got_colon = 1;
is_ws_after_key = 1; /* we already know the key length */
break;
default:

Loading…
Cancel
Save