FreeBSD/contrib/subversion/subversion/libsvn_ra_serf/update.c
/** Routines called when we are fetching a file */
Routines called when we are fetching a file
Routines called when we are fetching a file
static svn_error_t *
headers_fetch(serf_bucket_t *headers,
              void *baton,
              apr_pool_t *pool ,
              apr_pool_t *scratch_pool)
{
  fetch_ctx_t *fetch_ctx = baton;
  if (fetch_ctx->delta_base)
    {
      serf_bucket_headers_setn(headers, SVN_DAV_DELTA_BASE_HEADER,
                               fetch_ctx->delta_base);
      serf_bucket_headers_setn(headers, "Accept-Encoding",
                               "svndiff1;q=0.9,svndiff;q=0.8");
    }
  else if (fetch_ctx->using_compression)
    {
      serf_bucket_headers_setn(headers, "Accept-Encoding", "gzip");
    }
  return SVN_NO_ERROR;
}
static svn_error_t * headers_fetch ( serf_bucket_t * headers , void * baton , apr_pool_t * pool , apr_pool_t * scratch_pool ) { fetch_ctx_t * fetch_ctx = baton ; if ( fetch_ctx -> delta_base ) { serf_bucket_headers_setn ( headers , SVN_DAV_DELTA_BASE_HEADER , fetch_ctx -> delta_base ) ; serf_bucket_headers_setn ( headers , " " , " " ) ; } else if ( fetch_ctx -> using_compression ) { serf_bucket_headers_setn ( headers , " " , " " ) ; } return SVN_NO_ERROR ; }
Routines called when we are fetching a file
Routines called when we are fetching a file
/* request pool */ /* note that we have old VC URL */