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:
parent
ac9180ac46
commit
84b27db218
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue