bugfix: avoid setting Server header twice (#2065)

Fix #2064.
This commit is contained in:
罗泽轩 2020-08-15 17:19:35 +08:00 committed by GitHub
parent 6e0da454d1
commit 0b00e82773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -25,6 +25,16 @@ set -ex
git checkout conf/config.yaml
# check 'Server: APISIX' is not in nginx.conf. We already added it in Lua code.
make init
if grep "Server: APISIX" conf/nginx.conf > /dev/null; then
echo "failed: 'Server: APISIX' should not be added twice"
exit 1
fi
echo "passed: 'Server: APISIX' not in nginx.conf"
# check whether the 'reuseport' is in nginx.conf .
make init

View File

@ -238,7 +238,6 @@ http {
send_timeout {* http.send_timeout *};
server_tokens off;
more_set_headers 'Server: APISIX web server';
include mime.types;
charset utf-8;