mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
Merge pull request #980 from jsha/reject-non-h2
DoH: reject non-h2 early
This commit is contained in:
commit
b632ebf129
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue