1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-21 15:07:45 +00:00

patch: Fix Path needing to be a tuple

This commit is contained in:
Joshua Goins 2023-10-06 17:57:22 -04:00
parent db4ec4c57e
commit 86c9ff4c94

View file

@ -10,7 +10,7 @@ use axum::extract::Path;
use axum::response::IntoResponse;
use axum::http::HeaderMap;
async fn verify_session(Path(game_version): Path<String>, Path(sid): Path<String>) -> 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());