Skip to content

Commit

Permalink
restore the expected body
Browse files Browse the repository at this point in the history
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
  • Loading branch information
spacewander committed Aug 16, 2022
1 parent de8276b commit a95a84c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions t/APISIX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,21 @@ _EOC_
more_clear_headers Date;
}
# this configuration is needed as error_page is configured in http block
location \@50x.html {
set \$from_error_page 'true';
content_by_lua_block {
require("apisix.error_handling").handle_500()
}
header_filter_by_lua_block {
apisix.http_header_filter_phase()
}
log_by_lua_block {
apisix.http_log_phase()
}
}
}
$a6_ngx_directives
Expand Down

0 comments on commit a95a84c

Please sign in to comment.