nghttpx: Strip version number from server header field

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-22 20:56:40 +09:00
parent ea67864e08
commit e1b8317ae8
1 changed files with 1 additions and 2 deletions

View File

@ -1444,8 +1444,7 @@ void fill_default_config(Config *config) {
#endif // !OPENSSL_1_1_API #endif // !OPENSSL_1_1_API
auto &httpconf = config->http; auto &httpconf = config->http;
httpconf.server_name = httpconf.server_name = StringRef::from_lit("nghttpx");
StringRef::from_lit("nghttpx nghttp2/" NGHTTP2_VERSION);
httpconf.no_host_rewrite = true; httpconf.no_host_rewrite = true;
httpconf.request_header_field_buffer = 64_k; httpconf.request_header_field_buffer = 64_k;
httpconf.max_request_header_fields = 100; httpconf.max_request_header_fields = 100;