Skip to content

Commit e3e1707

Browse files
authored
typo: option name changed from "enabled" to "enable" in templates to match config (#358)
1 parent 11b838a commit e3e1707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/http/modules.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ sub_filter_types {{ sub_filter['types'] if sub_filter['types'] is string else su
334334
{# NGINX HTTP v2 -- ngx_http_v2_module #}
335335
{% macro http2(http2, scope='http') %}
336336
{% if scope != 'location' %}{# The following scoped directives are not available in the 'location' context #}
337-
{% if http2['enabled'] is defined and http2['enabled'] is boolean %}
338-
http2 {{ http2['enabled'] | ternary('on', 'off') }};
337+
{% if http2['enable'] is defined and http2['enable'] is boolean %}
338+
http2 {{ http2['enable'] | ternary('on', 'off') }};
339339
{% endif %}
340340
{% if http2['body_preread_size'] is defined %}
341341
http2_body_preread_size {{ http2['body_preread_size'] }};

0 commit comments

Comments
 (0)