forked from Hakase/nginx-build
Latest update - 7217
This commit is contained in:
@@ -388,7 +388,16 @@ ngx_event_connect_set_transparent(ngx_peer_connection_t *pc, ngx_socket_t s)
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
ngx_log_error(NGX_LOG_ALERT, pc->log, 0,
|
||||
"could not enable transparent proxying for IPv6 "
|
||||
"on this platform");
|
||||
|
||||
return NGX_ERROR;
|
||||
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
||||
#endif /* NGX_HAVE_INET6 */
|
||||
|
||||
@@ -3270,19 +3270,9 @@ ngx_http_v2_validate_header(ngx_http_request_t *r, ngx_http_v2_header_t *header)
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (ch) {
|
||||
case '\0':
|
||||
case LF:
|
||||
case CR:
|
||||
case ':':
|
||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||
"client sent invalid header name: \"%V\"",
|
||||
&header->name);
|
||||
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (ch >= 'A' && ch <= 'Z') {
|
||||
if (ch == '\0' || ch == LF || ch == CR || ch == ':'
|
||||
|| (ch >= 'A' && ch <= 'Z'))
|
||||
{
|
||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||
"client sent invalid header name: \"%V\"",
|
||||
&header->name);
|
||||
@@ -3296,10 +3286,7 @@ ngx_http_v2_validate_header(ngx_http_request_t *r, ngx_http_v2_header_t *header)
|
||||
for (i = 0; i != header->value.len; i++) {
|
||||
ch = header->value.data[i];
|
||||
|
||||
switch (ch) {
|
||||
case '\0':
|
||||
case LF:
|
||||
case CR:
|
||||
if (ch == '\0' || ch == LF || ch == CR) {
|
||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||
"client sent header \"%V\" with "
|
||||
"invalid value: \"%V\"",
|
||||
|
||||
Reference in New Issue
Block a user