mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-30 18:34:36 +01:00
fix no_http2 flag
This commit is contained in:
parent
ac9180ac46
commit
84b27db218
@ -254,7 +254,7 @@ where
|
|||||||
use super::{OpensslAcceptor, ServerFlags};
|
use super::{OpensslAcceptor, ServerFlags};
|
||||||
|
|
||||||
// alpn support
|
// alpn support
|
||||||
let flags = if !self.no_http2 {
|
let flags = if self.no_http2 {
|
||||||
ServerFlags::HTTP1
|
ServerFlags::HTTP1
|
||||||
} else {
|
} else {
|
||||||
ServerFlags::HTTP1 | ServerFlags::HTTP2
|
ServerFlags::HTTP1 | ServerFlags::HTTP2
|
||||||
@ -278,7 +278,7 @@ where
|
|||||||
use super::{RustlsAcceptor, ServerFlags};
|
use super::{RustlsAcceptor, ServerFlags};
|
||||||
|
|
||||||
// alpn support
|
// alpn support
|
||||||
let flags = if !self.no_http2 {
|
let flags = if self.no_http2 {
|
||||||
ServerFlags::HTTP1
|
ServerFlags::HTTP1
|
||||||
} else {
|
} else {
|
||||||
ServerFlags::HTTP1 | ServerFlags::HTTP2
|
ServerFlags::HTTP1 | ServerFlags::HTTP2
|
||||||
|
Loading…
Reference in New Issue
Block a user