1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 01:51:23 +02:00

Fix no_http2 flag in HttpServer (#526)

This commit is contained in:
Douman
2018-10-02 20:09:31 +03:00
committed by GitHub
parent c8505bb53f
commit f8b176de9e
2 changed files with 3 additions and 2 deletions

View File

@ -414,7 +414,7 @@ where
use actix_net::service::NewServiceExt;
// alpn support
let flags = if !self.no_http2 {
let flags = if self.no_http2 {
ServerFlags::HTTP1
} else {
ServerFlags::HTTP1 | ServerFlags::HTTP2
@ -437,7 +437,7 @@ where
use actix_net::service::NewServiceExt;
// alpn support
let flags = if !self.no_http2 {
let flags = if self.no_http2 {
ServerFlags::HTTP1
} else {
ServerFlags::HTTP1 | ServerFlags::HTTP2