| 144 | } |
| 145 | |
| 146 | static apr_off_t get_content_length(request_rec * r) |
| 147 | { |
| 148 | apr_off_t len = 0; |
| 149 | |
| 150 | if (r->main == NULL) { |
| 151 | const char *clp = apr_table_get(r->headers_in, "Content-Length"); |
| 152 | |
| 153 | if (clp && !ap_parse_strict_length(&len, clp)) { |
| 154 | len = -1; /* parse error */ |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | return len; |
| 159 | } |
| 160 | |
| 161 | /* |
| 162 | * XXX: AJP Auto Flushing |
no test coverage detected