Skip to content

Commit 47d3100

Browse files
committed
*) mod_http2: update to version 2.0.41
Fix cookie header accounting against LimitRequestFields. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1934678 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8786822 commit 47d3100

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎changes-entries/h2_v2.0.41.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*) mod_http2: update to version 2.0.41
2+
Fix cookie header accounting against LimitRequestFields.
3+
[Stefan Eissing]

‎modules/http2/h2_util.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1708,6 +1708,8 @@ static apr_status_t req_add_header(apr_table_t *headers, apr_pool_t *pool,
17081708
&& !ap_cstr_casecmpn("cookie", (const char *)nv->name, nv->namelen)) {
17091709
existing = apr_table_get(headers, "cookie");
17101710
if (existing) {
1711+
if (!nv->valuelen)
1712+
return APR_SUCCESS;
17111713
/* Cookie header come separately in HTTP/2, but need
17121714
* to be merged by "; " (instead of default ", ")
17131715
*/
@@ -1719,6 +1721,8 @@ static apr_status_t req_add_header(apr_table_t *headers, apr_pool_t *pool,
17191721
apr_table_setn(headers, "Cookie",
17201722
apr_psprintf(pool, "%s; %.*s", existing,
17211723
(int)nv->valuelen, nv->value));
1724+
/* Treat the merge as an "add" to not escape LimitRequestFields */
1725+
*pwas_added = 1;
17221726
return APR_SUCCESS;
17231727
}
17241728
}

‎modules/http2/h2_version.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
* @macro
2828
* Version number of the http2 module as c string
2929
*/
30-
#define MOD_HTTP2_VERSION "2.0.40"
30+
#define MOD_HTTP2_VERSION "2.0.41"
3131

3232
/**
3333
* @macro
3434
* Numerical representation of the version number of the http2 module
3535
* release. This is a 24 bit number with 8 bits for major number, 8 bits
3636
* for minor and 8 bits for patch. Version 1.2.3 becomes 0x010203.
3737
*/
38-
#define MOD_HTTP2_VERSION_NUM 0x020028
38+
#define MOD_HTTP2_VERSION_NUM 0x020029
3939

4040

4141
#endif /* mod_h2_h2_version_h */

0 commit comments

Comments
 (0)