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

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1718569 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_from_h1.c

index 4801ec5623d4715cc4fcc336ef39664433fddd86..e4264dc40935ceb7a1616711af65d28ae8cc9f5b 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);
     }
     
     /*