Commit ed6b1e3
authored
When reference server is in HTTP 1.1 mode, don't allow negotiating HTTP/2 via TLS (#856)
Some clients may not have the direct ability to _disable_ negotiating
HTTP/2 if the server advertises its support during ALPN step of TLS
handshake. So to prevent such clients from using HTTP/2, if HTTP 1.1. is
the intent, we disable HTTP/2 in the reference server. (Sadly, we can't
also disable HTTP 1.1 when HTTP/2 is the intent since Go's `net/http`
doesn't provide a way to do that 🤷.)1 parent f527afc commit ed6b1e3
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
343 | 348 | | |
344 | 349 | | |
345 | 350 | | |
| |||
0 commit comments