| 817 | } |
| 818 | |
| 819 | AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...) |
| 820 | { |
| 821 | const char *method; |
| 822 | va_list methods; |
| 823 | |
| 824 | /* |
| 825 | * Get rid of any current settings if requested; not just the |
| 826 | * well-known methods but any extensions as well. |
| 827 | */ |
| 828 | if (reset) { |
| 829 | ap_clear_method_list(r->allowed_methods); |
| 830 | } |
| 831 | |
| 832 | va_start(methods, reset); |
| 833 | while ((method = va_arg(methods, const char *)) != NULL) { |
| 834 | ap_method_list_add(r->allowed_methods, method); |
| 835 | } |
| 836 | va_end(methods); |
| 837 | } |
| 838 | |
| 839 | AP_DECLARE(void) ap_allow_standard_methods(request_rec *r, int reset, ...) |
| 840 | { |
no test coverage detected