subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject svn commit: r1102178 - /subversion/trunk/subversion/libsvn_ra_serf/update.c
Date Thu, 12 May 2011 06:18:55 GMT
Author: jerenkrantz
Date: Thu May 12 06:18:55 2011
New Revision: 1102178

URL: http://svn.apache.org/viewvc?rev=1102178&view=rev
Log:
Follow up to r1102173.

Kudos to Ivan for pointing it out that we should respect config.

* subversion/libsvn_ra_serf/update.c
  (headers_report): Make compression conditional based on servers config file.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/update.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/update.c?rev=1102178&r1=1102177&r2=1102178&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/update.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/update.c Thu May 12 06:18:55 2011
@@ -2247,7 +2247,10 @@ headers_report(serf_bucket_t *headers,
 {
   report_context_t *report = baton;
 
-  serf_bucket_headers_setn(headers, "Accept-Encoding", "gzip");
+  if (report->conn->using_compression)
+    {
+      serf_bucket_headers_setn(headers, "Accept-Encoding", "gzip");
+    }
 
   return SVN_NO_ERROR;
 }



Mime
View raw message