~ubuntu-branches/ubuntu/natty/tomcat6/natty-proposed

« back to all changes in this revision

Viewing changes to java/org/apache/coyote/http11/Http11AprProcessor.java

  • Committer: Bazaar Package Importer
  • Author(s): Thierry Carrez
  • Date: 2010-05-21 13:51:15 UTC
  • mfrom: (2.2.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100521135115-qfwnf24lzvi3644v
Tags: 6.0.26-2
* debian/tomcat6.{postinst,prerm}: Respect TOMCAT6_USER and TOMCAT6_GROUP
  as defined in /etc/default/tomcat6 when setting directory permissions and
  authbind configuration (Closes: #581018, LP: #557300)
* debian/tomcat6.postinst: Use group "tomcat6" instead of "adm" for
  permissions in /var/lib/tomcat6, so that group "adm" doesn't get write
  permissions over /var/lib/tomcat6/webapps (LP: #569118)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1668
1668
            outputBuffer.addActiveFilter(outputFilters[Constants.GZIP_FILTER]);
1669
1669
            headers.setValue("Content-Encoding").setString("gzip");
1670
1670
            // Make Proxies happy via Vary (from mod_deflate)
1671
 
            headers.setValue("Vary").setString("Accept-Encoding");
 
1671
            MessageBytes vary = headers.getValue("Vary");
 
1672
            if (vary == null) {
 
1673
                // Add a new Vary header
 
1674
                headers.setValue("Vary").setString("Accept-Encoding");
 
1675
            } else if (vary.equals("*")) {
 
1676
                // No action required
 
1677
            } else {
 
1678
                // Merge into current header
 
1679
                headers.setValue("Vary").setString(
 
1680
                        vary.getString() + ",Accept-Encoding");
 
1681
            }
1672
1682
        }
1673
1683
 
1674
1684
        // Add date header