1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-28 01:32:57 +01: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