Skip to content

Commit

Permalink
Fix RFC 8441 (WebSocket over http/2) issue
Browse files Browse the repository at this point in the history
This resolves #122 after a change in Axum 0.8.0. See the issue for an explanation of what happened.
  • Loading branch information
ekzhang committed Feb 12, 2025
1 parent 6b0e0ae commit 68c8b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sshx-server/src/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use std::sync::Arc;

use axum::routing::{get, get_service};
use axum::routing::{any, get_service};
use axum::Router;
use tower_http::services::{ServeDir, ServeFile};

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

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

0 comments on commit 68c8b0e

Please sign in to comment.