1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-24 17:10:33 +00:00

fix no_http2 flag

This commit is contained in:
Nikolay Kim 2018-08-03 19:40:43 -07:00
parent ac9180ac46
commit 84b27db218

View file

@ -254,7 +254,7 @@ where
use super::{OpensslAcceptor, ServerFlags};
// alpn support
let flags = if !self.no_http2 {
let flags = if self.no_http2 {
ServerFlags::HTTP1
} else {
ServerFlags::HTTP1 | ServerFlags::HTTP2
@ -278,7 +278,7 @@ where
use super::{RustlsAcceptor, ServerFlags};
// alpn support
let flags = if !self.no_http2 {
let flags = if self.no_http2 {
ServerFlags::HTTP1
} else {
ServerFlags::HTTP1 | ServerFlags::HTTP2