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:
parent
ac9180ac46
commit
84b27db218
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user