* Make a copy of a method list (primarily for subrequests that may * subsequently change it; don't want them changing the parent's, too!). */
| 1560 | * subsequently change it; don't want them changing the parent's, too!). |
| 1561 | */ |
| 1562 | AP_DECLARE(void) ap_copy_method_list(ap_method_list_t *dest, |
| 1563 | ap_method_list_t *src) |
| 1564 | { |
| 1565 | int i; |
| 1566 | char **imethods; |
| 1567 | char **omethods; |
| 1568 | |
| 1569 | dest->method_mask = src->method_mask; |
| 1570 | imethods = (char **) src->method_list->elts; |
| 1571 | for (i = 0; i < src->method_list->nelts; ++i) { |
| 1572 | omethods = (char **) apr_array_push(dest->method_list); |
| 1573 | *omethods = apr_pstrdup(dest->method_list->pool, imethods[i]); |
| 1574 | } |
| 1575 | } |
| 1576 | |
| 1577 | /* |
| 1578 | * Return true if the specified HTTP method is in the provided |
no outgoing calls
no test coverage detected