goto die_unusable_input;
}
+ clen = apr_table_get(r->headers_in, "Content-Length");
+ if (clen) {
+ apr_off_t cl;
+
+ if (!ap_parse_strict_length(&cl, clen)) {
+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(10242)
+ "client sent invalid Content-Length "
+ "(%s): %s", clen, r->uri);
+ access_status = HTTP_BAD_REQUEST;
+ goto die_unusable_input;
+ }
+ }
+
tenc = apr_table_get(r->headers_in, "Transfer-Encoding");
if (tenc) {
/* http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-23
*/
apr_table_unset(r->headers_in, "Content-Length");
}
- else if ((clen = apr_table_get(r->headers_in, "Content-Length"))) {
- apr_off_t cl;
-
- if (!ap_parse_strict_length(&cl, clen)) {
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(10242)
- "client sent invalid Content-Length "
- "(%s): %s", clen, r->uri);
- access_status = HTTP_BAD_REQUEST;
- goto die_unusable_input;
- }
- }
}
/*