From 66261c37c3e040c2bd9a8eb12eaabde882ae0ce3 Mon Sep 17 00:00:00 2001 From: bitful-pannul Date: Tue, 16 Jan 2024 11:50:37 -0300 Subject: [PATCH] chess: http path process_lib update --- modules/chess/chess/Cargo.lock | 2 +- modules/chess/chess/Cargo.toml | 2 +- modules/chess/chess/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/chess/chess/Cargo.lock b/modules/chess/chess/Cargo.lock index 4c0465ab..db246f17 100644 --- a/modules/chess/chess/Cargo.lock +++ b/modules/chess/chess/Cargo.lock @@ -286,7 +286,7 @@ checksum = "c55d0c9dc43dedfd2414deb74ade67687749ef88b1d3482024d4c81d901a7a83" [[package]] name = "nectar_process_lib" version = "0.5.0" -source = "git+ssh://git@github.com/uqbar-dao/process_lib.git?tag=v0.5.1-alpha#64d2856412c11c93b5f4e2f6d61b5111fa4bf84c" +source = "git+ssh://git@github.com/uqbar-dao/process_lib.git?rev=ed446df#ed446df53047e7421c5d325a98cbc030738b7fee" dependencies = [ "anyhow", "bincode", diff --git a/modules/chess/chess/Cargo.toml b/modules/chess/chess/Cargo.toml index 8ef742c3..d5e2a4b9 100644 --- a/modules/chess/chess/Cargo.toml +++ b/modules/chess/chess/Cargo.toml @@ -16,7 +16,7 @@ pleco = "0.5" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" url = "*" -nectar_process_lib = { git = "ssh://git@github.com/uqbar-dao/process_lib.git", tag = "v0.5.1-alpha" } +nectar_process_lib = { git = "ssh://git@github.com/uqbar-dao/process_lib.git", rev = "ed446df" } wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "efcc759" } [lib] diff --git a/modules/chess/chess/src/lib.rs b/modules/chess/chess/src/lib.rs index 037339a3..00141eb5 100644 --- a/modules/chess/chess/src/lib.rs +++ b/modules/chess/chess/src/lib.rs @@ -418,7 +418,7 @@ fn handle_http_request( state: &mut ChessState, http_request: &http::IncomingHttpRequest, ) -> anyhow::Result<()> { - if http_request.path()? != "games" { + if http_request.raw_path != "/games" { return http::send_response( http::StatusCode::NOT_FOUND, None,