subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r896247 - /subversion/trunk/subversion/libsvn_ra_serf/util.c
Date Tue, 05 Jan 2010 22:22:29 GMT
Author: lgo
Date: Tue Jan  5 22:22:24 2010
New Revision: 896247

URL: http://svn.apache.org/viewvc?rev=896247&view=rev
Log:
ra_serf: Now that we use the new serf API to create the request bucket, we shouldn't
set the Host header anymore, as serf will do that for us.

* subversion/libsvn_ra_serf/util.c: Don't set Host header on requests when using
  serf version >= 0.4.

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

Modified: subversion/trunk/subversion/libsvn_ra_serf/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/util.c?rev=896247&r1=896246&r2=896247&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/util.c Tue Jan  5 22:22:24 2010
@@ -509,7 +509,9 @@
                                        serf_request_get_alloc(request));
 
   hdrs_bkt = serf_bucket_request_get_headers(*req_bkt);
+#if ! SERF_VERSION_AT_LEAST(0, 4, 0)
   serf_bucket_headers_setn(hdrs_bkt, "Host", conn->hostinfo);
+#endif
   serf_bucket_headers_setn(hdrs_bkt, "User-Agent", conn->useragent);
 
   if (content_type)



Mime
View raw message