有谁知道 nginx 在哪里进行 header 验证?

Do anyone knows where nginx does header validations?

有谁知道 Nginx 在请求 header 名称中不允许使用哪些字符以及这个检查哪个模块?

根据 Nginx docs

Valid names are composed of English letters, digits, hyphens, and possibly underscores (as controlled by the underscores_in_headers directive)

在源代码中,在ngx_http_request.c中通过对ngx_http_parse_header_line()的函数调用进行了验证。