Commit f3183efe authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Emit protocol id error only when verbose output is enabled

parent b5341eba
......@@ -450,9 +450,11 @@ int Http2Handler::verify_npn_result()
#endif // OPENSSL_VERSION_NUMBER < 0x10002000L
}
}
std::cerr << "Client did not advertise HTTP/2.0 protocol."
<< " (nghttp2 expects " << NGHTTP2_PROTO_VERSION_ID << ")"
<< std::endl;
if(sessions_->get_config()->verbose) {
std::cerr << "Client did not advertise HTTP/2.0 protocol."
<< " (nghttp2 expects " << NGHTTP2_PROTO_VERSION_ID << ")"
<< std::endl;
}
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment