]> granicus.if.org Git - apache/commitdiff
Merge r1718569 from trunk.
authorYann Ylavic <ylavic@apache.org>
Tue, 8 Dec 2015 13:08:13 +0000 (13:08 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 8 Dec 2015 13:08:13 +0000 (13:08 +0000)
h2_from_h1: To avoid any further confusion, r->err_headers should be cleared
once merged into r->headers_out.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1718586 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_from_h1.c

index 755b7d6815b65ec0bb9bbee94e8983750e201dfc..0b5060d4d1ee8b444d39b9eb48d0ea756001f108 100644 (file)
@@ -358,6 +358,7 @@ static h2_response *create_response(h2_from_h1 *from_h1, request_rec *r)
     if (!apr_is_empty_table(r->err_headers_out)) {
         r->headers_out = apr_table_overlay(r->pool, r->err_headers_out,
                                            r->headers_out);
+        apr_table_clear(r->err_headers_out);
     }
     
     /*