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

Function table_do_fn_check_lengths

server/protocol.c:1073–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071}
1072
1073static int table_do_fn_check_lengths(void *r_, const char *key,
1074 const char *value)
1075{
1076 request_rec *r = r_;
1077 if (value == NULL || r->server->limit_req_fieldsize >= strlen(value) )
1078 return 1;
1079
1080 r->status = HTTP_BAD_REQUEST;
1081 apr_table_setn(r->notes, "error-notes",
1082 "Size of a request header field exceeds server limit.");
1083 ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(00560) "Request "
1084 "header exceeds LimitRequestFieldSize after merging: %.*s",
1085 field_name_len(key), key);
1086 return 0;
1087}
1088
1089AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb)
1090{

Callers

nothing calls this directly

Calls 1

field_name_lenFunction · 0.85

Tested by

no test coverage detected