nghttpd: Emit protocol id error only when verbose output is enabled
This commit is contained in:
parent
b5341ebac6
commit
f3183efe04
|
@ -450,9 +450,11 @@ int Http2Handler::verify_npn_result()
|
|||
#endif // OPENSSL_VERSION_NUMBER < 0x10002000L
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue