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;
|
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
|
#endif
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#endif /* NGX_HAVE_INET6 */
|
#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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (ch) {
|
if (ch == '\0' || ch == LF || ch == CR || ch == ':'
|
||||||
case '\0':
|
|| (ch >= 'A' && ch <= 'Z'))
|
||||||
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') {
|
|
||||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||||
"client sent invalid header name: \"%V\"",
|
"client sent invalid header name: \"%V\"",
|
||||||
&header->name);
|
&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++) {
|
for (i = 0; i != header->value.len; i++) {
|
||||||
ch = header->value.data[i];
|
ch = header->value.data[i];
|
||||||
|
|
||||||
switch (ch) {
|
if (ch == '\0' || ch == LF || ch == CR) {
|
||||||
case '\0':
|
|
||||||
case LF:
|
|
||||||
case CR:
|
|
||||||
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
ngx_log_error(NGX_LOG_INFO, r->connection->log, 0,
|
||||||
"client sent header \"%V\" with "
|
"client sent header \"%V\" with "
|
||||||
"invalid value: \"%V\"",
|
"invalid value: \"%V\"",
|
||||||
|
|||||||
Reference in New Issue
Block a user