fix: avoid 'using uninitialized "from_error_page" variable' (#4253)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2021-05-15 06:24:08 +08:00 committed by GitHub
parent c70d797c7c
commit 5a1fa2784e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -502,6 +502,7 @@ http {
set $upstream_host $http_host;
set $upstream_uri '';
set $ctx_ref '';
set $from_error_page '';
{% if enabled_plugins["dubbo-proxy"] then %}
set $dubbo_service_name '';

View File

@ -554,6 +554,7 @@ _EOC_
set \$upstream_host \$http_host;
set \$upstream_uri '';
set \$ctx_ref '';
set \$from_error_page '';
set \$upstream_cache_zone off;
set \$upstream_cache_key '';