Commit 7cf01eae authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

Save a few bytes and a few cycles.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1779700 13f79535-47bb-0310-9956-ffa450edef68
parent 196d693c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -443,9 +443,9 @@ static apr_status_t compress_filter(ap_filter_t *f, apr_bucket_brigade *bb)
                apr_size_t len = strlen(etag);

                if (len > 2 && etag[len - 1] == '"') {
                    etag = apr_pstrndup(r->pool, etag, len - 1);
                    etag = apr_pstrmemdup(r->pool, etag, len - 1);
                    etag = apr_pstrcat(r->pool, etag, "-br\"", NULL);
                    apr_table_set(r->headers_out, "ETag", etag);
                    apr_table_setn(r->headers_out, "ETag", etag);
                }
            }
        }