diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-03-13 19:36:33 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-03-13 19:36:33 +0300 |
commit | 7739b6073b11086d9a3dc4b9744418070e182c33 (patch) | |
tree | 7a16aeff28275722458173e83e2f6dd1889cc44a /src/http/ngx_http_core_module.c | |
parent | 365b77b58732a708168c995c7956f50d110fee33 (diff) | |
download | nginx-7739b6073b11086d9a3dc4b9744418070e182c33.tar.gz nginx-7739b6073b11086d9a3dc4b9744418070e182c33.zip |
HTTP/3.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 5c210bebd..576c679d7 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -809,7 +809,7 @@ ngx_http_handler(ngx_http_request_t *r) if (!r->internal) { switch (r->headers_in.connection_type) { case 0: - r->keepalive = (r->http_version > NGX_HTTP_VERSION_10); + r->keepalive = (r->http_version == NGX_HTTP_VERSION_11); break; case NGX_HTTP_CONNECTION_CLOSE: @@ -4000,14 +4000,14 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } if (ngx_strcmp(value[n].data, "http3") == 0) { -#if (NGX_HTTP_SSL) +#if (NGX_HTTP_V3) lsopt.http3 = 1; lsopt.type = SOCK_DGRAM; continue; #else ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "the \"http3\" parameter requires " - "ngx_http_ssl_module"); + "ngx_http_v3_module"); return NGX_CONF_ERROR; #endif } |