mirror of
https://github.com/actix/actix-web.git
synced 2024-12-23 00:26:34 +00:00
Fix no_http2 flag in HttpServer (#526)
This commit is contained in:
parent
c8505bb53f
commit
f8b176de9e
2 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
* Responses with the following codes: 100, 101, 102, 204 -- are sent without Content-Length header. #521
|
||||
|
||||
* Correct usage of `no_http2` flag in `bind_*` methods. #519
|
||||
|
||||
## [0.7.8] - 2018-09-17
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue