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

Function field_name_len

server/protocol.c:647–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645/* get the length of the field name for logging, but no more than 80 bytes */
646#define LOG_NAME_MAX_LEN 80
647static int field_name_len(const char *field)
648{
649 const char *end = ap_strchr_c(field, ':');
650 if (end == NULL || end - field > LOG_NAME_MAX_LEN)
651 return LOG_NAME_MAX_LEN;
652 return end - field;
653}
654
655static int read_request_line(request_rec *r, apr_bucket_brigade *bb)
656{

Callers 3

ap_parse_request_lineFunction · 0.85
ap_get_mime_headers_coreFunction · 0.85

Calls 1

ap_strchr_cFunction · 0.85

Tested by

no test coverage detected