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

Function do_header_line

modules/mappers/mod_negotiation.c:516–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514 */
515
516static apr_array_header_t *do_header_line(apr_pool_t *p,
517 const char *accept_line)
518{
519 apr_array_header_t *accept_recs;
520
521 if (!accept_line) {
522 return NULL;
523 }
524
525 accept_recs = apr_array_make(p, 40, sizeof(accept_rec));
526
527 while (*accept_line) {
528 accept_rec *new = (accept_rec *) apr_array_push(accept_recs);
529 accept_line = get_entry(p, new, accept_line);
530 }
531
532 return accept_recs;
533}
534
535/* Given the text of the Content-Languages: line from the var map file,
536 * return an array containing the languages of this variant

Callers 2

parse_accept_headersFunction · 0.85
fix_encodingFunction · 0.85

Calls 1

get_entryFunction · 0.85

Tested by

no test coverage detected