HTTP/3: fixed compilation with QUIC, but without HTTP/3.

This commit is contained in:
Roman Arutyunyan 2021-11-17 18:49:48 +03:00
parent 50dd9ba7e8
commit bfa2d1d599

View File

@ -332,8 +332,10 @@ ngx_http_quic_create_srv_conf(ngx_conf_t *cf)
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;
}