"vscode:/vscode.git/clone" did not exist on "1f5f31ced9271247ba7ef90342ee8eb7500b499d"
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<()> {
// Default handler for unmatched routes.
.default_service(web::route().to(sink_handler))
})
.bind((config.host, config.port))?
.bind_auto_h2c((config.host, config.port))?
.run()
.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