From e1b8317ae8886b9e490073f64cddc6ae156f213e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 22 Feb 2017 20:56:40 +0900 Subject: [PATCH] nghttpx: Strip version number from server header field --- src/shrpx.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 1f6bd042..6def310d 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1444,8 +1444,7 @@ void fill_default_config(Config *config) { #endif // !OPENSSL_1_1_API auto &httpconf = config->http; - httpconf.server_name = - StringRef::from_lit("nghttpx nghttp2/" NGHTTP2_VERSION); + httpconf.server_name = StringRef::from_lit("nghttpx"); httpconf.no_host_rewrite = true; httpconf.request_header_field_buffer = 64_k; httpconf.max_request_header_fields = 100;