Skip to content

Commit

Permalink
Merge pull request #980 from jsha/reject-non-h2
Browse files Browse the repository at this point in the history
DoH: reject non-h2 early
  • Loading branch information
wcawijngaards committed Jan 3, 2024
2 parents 6c82f4a + 87644fa commit b632ebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/netevent.c
Expand Up @@ -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
Expand Down

0 comments on commit b632ebf

Please sign in to comment.