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

Function ap_is_chunked

server/util.c:1786–1810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1784}
1785
1786AP_DECLARE(int) ap_is_chunked(apr_pool_t *p, const char *line)
1787{
1788 const char *s;
1789
1790 if (!line)
1791 return 0;
1792 if (!ap_cstr_casecmp(line, "chunked")) {
1793 return 1;
1794 }
1795
1796 s = find_last_token(p, line, "chunked");
1797
1798 if (!s) return 0;
1799
1800 /* eat spaces right-to-left to see what precedes "chunked" */
1801 while (--s > line) {
1802 if (*s != ' ') break;
1803 }
1804
1805 /* found delim, or leading ws (input wasn't parsed by httpd as a header) */
1806 if (*s == ',' || *s == ' ') {
1807 return 1;
1808 }
1809 return 0;
1810}
1811
1812AP_DECLARE(char *) ap_escape_shell_cmd(apr_pool_t *p, const char *str)
1813{

Callers 5

ap_set_keepaliveFunction · 0.85
ap_http_filterFunction · 0.85
check_headersFunction · 0.85
c2_processFunction · 0.85
ap_read_requestFunction · 0.85

Calls 2

ap_cstr_casecmpFunction · 0.85
find_last_tokenFunction · 0.85

Tested by

no test coverage detected