From e684b8149bbb733fc193c414cf4633312e03a337 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 6 Nov 2013 23:32:32 +0900 Subject: [PATCH] nghttpd: Fix -c option --- src/HttpServer.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 6f636c47..e6db6946 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -55,7 +55,6 @@ namespace nghttp2 { namespace { -Config config; const std::string STATUS_200 = "200"; const std::string STATUS_304 = "304"; const std::string STATUS_400 = "400"; @@ -372,9 +371,9 @@ int Http2Handler::on_connect() entry[niv].value = 1; ++niv; } - if(config.header_table_size >= 0) { + if(sessions_->get_config()->header_table_size >= 0) { entry[niv].settings_id = NGHTTP2_SETTINGS_HEADER_TABLE_SIZE; - entry[niv].value = config.header_table_size; + entry[niv].value = sessions_->get_config()->header_table_size; ++niv; } r = nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, entry, niv);