Skip to content

Commit

Permalink
Merge pull request #22 from CoLearn-Dev/accept-http1
Browse files Browse the repository at this point in the history
- add accept_http1
  • Loading branch information
stneng authored Aug 3, 2022
2 parents 7fcc882 + 9c2a8e6 commit c2e4850
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "colink-server"
version = "0.1.6"
version = "0.1.7"
edition = "2021"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ async fn run_server(
if cert.is_none() || key.is_none() {
/* No TLS */
Server::builder()
.accept_http1(true)
.add_service(service)
.serve(socket_address)
.await?;
Expand Down

0 comments on commit c2e4850

Please sign in to comment.