| 837 | } |
| 838 | |
| 839 | AP_DECLARE(void) ap_allow_standard_methods(request_rec *r, int reset, ...) |
| 840 | { |
| 841 | int method; |
| 842 | va_list methods; |
| 843 | apr_int64_t mask; |
| 844 | |
| 845 | /* |
| 846 | * Get rid of any current settings if requested; not just the |
| 847 | * well-known methods but any extensions as well. |
| 848 | */ |
| 849 | if (reset) { |
| 850 | ap_clear_method_list(r->allowed_methods); |
| 851 | } |
| 852 | |
| 853 | mask = 0; |
| 854 | va_start(methods, reset); |
| 855 | while ((method = va_arg(methods, int)) != -1) { |
| 856 | mask |= (AP_METHOD_BIT << method); |
| 857 | } |
| 858 | va_end(methods); |
| 859 | |
| 860 | r->allowed_methods->method_mask |= mask; |
| 861 | } |
no test coverage detected