| 2350 | } |
| 2351 | |
| 2352 | DAV_DECLARE(apr_text *) dav_success_proppatch(apr_pool_t *p, |
| 2353 | apr_array_header_t *prop_ctx) |
| 2354 | { |
| 2355 | apr_text_header hdr = { 0 }; |
| 2356 | int i = prop_ctx->nelts; |
| 2357 | dav_prop_ctx *ctx = (dav_prop_ctx *)prop_ctx->elts; |
| 2358 | |
| 2359 | /* |
| 2360 | * ### we probably need to revise the way we assemble the response... |
| 2361 | * ### this code assumes everything will return status==200. |
| 2362 | */ |
| 2363 | |
| 2364 | apr_text_append(p, &hdr, |
| 2365 | "<D:propstat>" DEBUG_CR |
| 2366 | "<D:prop>" DEBUG_CR); |
| 2367 | |
| 2368 | for ( ; i-- > 0; ++ctx ) { |
| 2369 | apr_text_append(p, &hdr, apr_xml_empty_elem(p, ctx->prop)); |
| 2370 | } |
| 2371 | |
| 2372 | apr_text_append(p, &hdr, |
| 2373 | "</D:prop>" DEBUG_CR |
| 2374 | "<D:status>HTTP/1.1 200 OK</D:status>" DEBUG_CR |
| 2375 | "</D:propstat>" DEBUG_CR); |
| 2376 | |
| 2377 | return hdr.first; |
| 2378 | } |
| 2379 | |
| 2380 | static void dav_prop_log_errors(dav_prop_ctx *ctx) |
| 2381 | { |
no outgoing calls
no test coverage detected