Latest update - 7226
This commit is contained in:
@@ -434,7 +434,9 @@ ngx_http_add_variable(ngx_conf_t *cf, ngx_str_t *name, ngx_uint_t flags)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v->flags &= flags | ~NGX_HTTP_VAR_WEAK;
|
||||
if (!(flags & NGX_HTTP_VAR_WEAK)) {
|
||||
v->flags &= ~NGX_HTTP_VAR_WEAK;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
@@ -499,7 +501,9 @@ ngx_http_add_prefix_variable(ngx_conf_t *cf, ngx_str_t *name, ngx_uint_t flags)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v->flags &= flags | ~NGX_HTTP_VAR_WEAK;
|
||||
if (!(flags & NGX_HTTP_VAR_WEAK)) {
|
||||
v->flags &= ~NGX_HTTP_VAR_WEAK;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
@@ -785,8 +785,8 @@ ngx_http_v2_state_head(ngx_http_v2_connection_t *h2c, u_char *pos, u_char *end)
|
||||
type, h2c->state.flags, h2c->state.length, h2c->state.sid);
|
||||
|
||||
if (type >= NGX_HTTP_V2_FRAME_STATES) {
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, h2c->connection->log, 0,
|
||||
"http2 frame with unknown type %ui", type);
|
||||
ngx_log_error(NGX_LOG_INFO, h2c->connection->log, 0,
|
||||
"client sent frame with unknown type %ui", type);
|
||||
return ngx_http_v2_state_skip(h2c, pos, end);
|
||||
}
|
||||
|
||||
|
||||
@@ -868,7 +868,8 @@ ngx_stream_log_json_variable(ngx_stream_session_t *s, u_char *buf,
|
||||
|
||||
|
||||
static size_t
|
||||
ngx_stream_log_unescaped_variable_getlen(ngx_stream_session_t *s, uintptr_t data)
|
||||
ngx_stream_log_unescaped_variable_getlen(ngx_stream_session_t *s,
|
||||
uintptr_t data)
|
||||
{
|
||||
ngx_stream_variable_value_t *value;
|
||||
|
||||
|
||||
@@ -161,7 +161,9 @@ ngx_stream_add_variable(ngx_conf_t *cf, ngx_str_t *name, ngx_uint_t flags)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v->flags &= flags | ~NGX_STREAM_VAR_WEAK;
|
||||
if (!(flags & NGX_STREAM_VAR_WEAK)) {
|
||||
v->flags &= ~NGX_STREAM_VAR_WEAK;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
@@ -227,7 +229,9 @@ ngx_stream_add_prefix_variable(ngx_conf_t *cf, ngx_str_t *name,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
v->flags &= flags | ~NGX_STREAM_VAR_WEAK;
|
||||
if (!(flags & NGX_STREAM_VAR_WEAK)) {
|
||||
v->flags &= ~NGX_STREAM_VAR_WEAK;
|
||||
}
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user