MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / header_name_is

Function header_name_is

src/ui/httpd.c:437–443  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435/* ── Head parsing ─────────────────────────────────────────────── */
436
437static bool header_name_is(const char *line, size_t name_len, const char *name) {
438 for (size_t i = 0; i < name_len; i++) {
439 if (tolower((unsigned char)line[i]) != name[i])
440 return false;
441 }
442 return name[name_len] == '\0' ? true : false;
443}
444
445/* Copy a trimmed header value into out. Oversize security headers are rejected,
446 * never silently converted into an apparently absent header. */

Callers 1

cbm_http_parse_headFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected