From 86c9ff4c94d37ca9d12faf9f3e414d6383d9dc89 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 6 Oct 2023 17:57:22 -0400 Subject: [PATCH] patch: Fix Path needing to be a tuple --- src/bin/kawari-patch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/kawari-patch.rs b/src/bin/kawari-patch.rs index 8037912..dc91650 100644 --- a/src/bin/kawari-patch.rs +++ b/src/bin/kawari-patch.rs @@ -10,7 +10,7 @@ use axum::extract::Path; use axum::response::IntoResponse; use axum::http::HeaderMap; -async fn verify_session(Path(game_version): Path, Path(sid): Path) -> impl IntoResponse { +async fn verify_session(Path((game_version, sid)): Path<(String, String)>) -> impl IntoResponse { let mut headers = HeaderMap::new(); headers.insert("X-Patch-Unique-Id", sid.parse().unwrap());