Skip to content

Commit 8ce5a40

Browse files
committed
Add support for http2 directive
The new http2 directive obsoletes the http2 parameter of the listen directive which is now deprecated. https://docs.nginx.com/nginx/releases/#nginxplusrelease-30-r30 http://nginx.org/en/docs/http/ngx_http_v2_module.html#http2
1 parent 9b080c3 commit 8ce5a40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

analyze.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,9 @@ var directives = map[string][]uint{
698698
"http": {
699699
ngxMainConf | ngxConfBlock | ngxConfNoArgs,
700700
},
701+
"http2": {
702+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxConfFlag,
703+
},
701704
"http2_body_preread_size": {
702705
ngxHTTPMainConf | ngxHTTPSrvConf | ngxConfTake1,
703706
},

0 commit comments

Comments
 (0)