"vscode:/vscode.git/clone" did not exist on "32f8c89201e85f8405ec263d40baeb6daf84c3cb"
Unverified Commit 669caa0a authored by Zilin Zhu's avatar Zilin Zhu Committed by GitHub
Browse files

[router] support http2 in router (#6487)

parent 4024e1d2
...@@ -264,7 +264,7 @@ pub async fn startup(config: ServerConfig) -> std::io::Result<()> { ...@@ -264,7 +264,7 @@ pub async fn startup(config: ServerConfig) -> std::io::Result<()> {
// Default handler for unmatched routes. // Default handler for unmatched routes.
.default_service(web::route().to(sink_handler)) .default_service(web::route().to(sink_handler))
}) })
.bind((config.host, config.port))? .bind_auto_h2c((config.host, config.port))?
.run() .run()
.await .await
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment