Merge pull request #980 from jsha/reject-non-h2

DoH: reject non-h2 early
This commit is contained in:
Wouter Wijngaards 2024-01-03 09:59:15 +01:00 committed by GitHub
commit b632ebf129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1748,6 +1748,9 @@ ssl_handshake(struct comm_point* c)
/* connection upgraded to HTTP2 */
c->tcp_do_toggle_rw = 0;
c->use_h2 = 1;
} else {
verbose(VERB_ALGO, "client doesn't support HTTP/2");
return 0;
}
}
#endif