From: Christophe Jaillet Date: Mon, 15 Oct 2012 19:49:23 +0000 (+0000) Subject: ccpcheck: duplicateExpression - 'vary_by_language' is tested twice X-Git-Tag: 2.5.0-alpha~6195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bf89abdc060638f81e63a122eda570094afc2c4;p=thirdparty%2Fapache%2Fhttpd.git ccpcheck: duplicateExpression - 'vary_by_language' is tested twice git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1398478 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 5f3232b8a55..4a3a45730ee 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -2606,7 +2606,7 @@ static void set_neg_headers(request_rec *r, negotiation_state *neg, } if (neg->is_transparent || vary_by_type || vary_by_language || - vary_by_language || vary_by_charset || vary_by_encoding) { + vary_by_charset || vary_by_encoding) { apr_table_mergen(hdrs, "Vary", 2 + apr_pstrcat(r->pool, neg->is_transparent ? ", negotiate" : "",