MCPcopy Create free account
hub / github.com/apache/httpd / get_content_length

Function get_content_length

modules/proxy/mod_proxy_ajp.c:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static 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

Callers 1

ap_proxy_ajp_requestFunction · 0.85

Calls 1

ap_parse_strict_lengthFunction · 0.85

Tested by

no test coverage detected