* Determine if a request has a request body or not. * * @param r the request_rec of the request * @return truth value */
| 2696 | * @return truth value |
| 2697 | */ |
| 2698 | AP_DECLARE(int) ap_request_has_body(request_rec *r) |
| 2699 | { |
| 2700 | apr_off_t cl; |
| 2701 | const char *cls; |
| 2702 | |
| 2703 | return (!r->header_only |
| 2704 | && (r->kept_body |
| 2705 | || apr_table_get(r->headers_in, "Transfer-Encoding") |
| 2706 | || ((cls = apr_table_get(r->headers_in, "Content-Length")) |
| 2707 | && ap_parse_strict_length(&cl, cls) && cl > 0))); |
| 2708 | } |
| 2709 | |
| 2710 | AP_DECLARE_NONSTD(apr_status_t) ap_pool_cleanup_set_null(void *data_) |
| 2711 | { |
no test coverage detected