static svn_error_t * setup_merge_headers(serf_bucket_t *headers, void *baton, apr_pool_t *pool /* request pool */, apr_pool_t *scratch_pool) { merge_context_t *ctx = baton; if (!ctx->keep_locks) { serf_bucket_headers_set(headers, SVN_DAV_OPTIONS_HEADER, SVN_DAV_OPTION_RELEASE_LOCKS); } return SVN_NO_ERROR; }
static svn_error_t * setup_merge_headers(serf_bucket_t *headers, void *baton, apr_pool_t *pool /* request pool */, apr_pool_t *scratch_pool) { merge_context_t *ctx = baton; apr_array_header_t *vals = apr_array_make(scratch_pool, 2, sizeof(const char *)); if (!ctx->keep_locks) APR_ARRAY_PUSH(vals, const char *) = SVN_DAV_OPTION_RELEASE_LOCKS; if (ctx->disable_merge_response) APR_ARRAY_PUSH(vals, const char *) = SVN_DAV_OPTION_NO_MERGE_RESPONSE; if (vals->nelts > 0) serf_bucket_headers_set(headers, SVN_DAV_OPTIONS_HEADER, svn_cstring_join2(vals, " ", FALSE, scratch_pool)); return SVN_NO_ERROR; }