APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/04/15 19:54:49 $]
+Last modified at [$Date: 2004/04/15 20:10:37 $]
Release:
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/dav/main/util.c?r1=1.53&r2=1.54
+1: jorton, nd
- *) Issue a 413 not a 400 if client exceeds configured LimitXMLRequestBody
- http://cvs.apache.org/viewcvs.cgi/httpd-2.0/server/util_xml.c?r1=1.28&r2=1.29
- +1: jorton, trawick, bnicholes
-
*) mod_dav: Send an EOS at the end of the multistatus brigade.
http://cvs.apache.org/viewcvs.cgi/httpd-2.0/modules/dav/main/mod_dav.c?r1=1.105&r2=1.106
+1: jorton
char errbuf[200];
apr_size_t total_read = 0;
apr_size_t limit_xml_body = ap_get_limit_xml_body(r);
+ int result = HTTP_BAD_REQUEST;
parser = apr_xml_parser_create(r->pool);
brigade = apr_brigade_create(r->pool, r->connection->bucket_alloc);
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
"XML request body is larger than the configured "
"limit of %lu", (unsigned long)limit_xml_body);
+ result = HTTP_REQUEST_ENTITY_TOO_LARGE;
goto read_error;
}
apr_brigade_destroy(brigade);
/* Apache will supply a default error, plus the error log above. */
- return HTTP_BAD_REQUEST;
+ return result;
}