# HG changeset patch # User Roman Arutyunyan # Date 1637164188 -10800 # Node ID 122bfa14465b8ce99c272cc499a6846e87ae8dec # Parent 41caf541011045612975b7bb8423a18fd424df77 HTTP/3: fixed compilation with QUIC, but without HTTP/3. diff --git a/src/http/modules/ngx_http_quic_module.c b/src/http/modules/ngx_http_quic_module.c --- a/src/http/modules/ngx_http_quic_module.c +++ b/src/http/modules/ngx_http_quic_module.c @@ -332,8 +332,10 @@ ngx_http_quic_create_srv_conf(ngx_conf_t conf->retry = NGX_CONF_UNSET; conf->gso_enabled = NGX_CONF_UNSET; +#if (NGX_HTTP_V3) conf->stream_close_code = NGX_HTTP_V3_ERR_NO_ERROR; conf->stream_reject_code_bidi = NGX_HTTP_V3_ERR_REQUEST_REJECTED; +#endif return conf; }