Skip to content

Commit b9df214

Browse files
authored
Fix RFC 8441 (WebSocket over HTTP/2) issue (#123)
This resolves #122 after a change in Axum 0.8.0. See the issue for an explanation of what happened.
1 parent 6b0e0ae commit b9df214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/sshx-server/src/web.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use std::sync::Arc;
44

5-
use axum::routing::{get, get_service};
5+
use axum::routing::{any, get_service};
66
use axum::Router;
77
use tower_http::services::{ServeDir, ServeFile};
88

@@ -30,5 +30,5 @@ pub fn app() -> Router<Arc<ServerState>> {
3030

3131
/// Routes for the backend web API server.
3232
fn backend() -> Router<Arc<ServerState>> {
33-
Router::new().route("/s/{name}", get(socket::get_session_ws))
33+
Router::new().route("/s/{name}", any(socket::get_session_ws))
3434
}

0 commit comments

Comments
 (0)