From eda49deb67195b0348b013222bb077ac7d381e31 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 17 Jul 2020 00:22:26 +0200 Subject: FastCgiRequest: Implement `conduit::RequestExt::path_mut` The latest version of Conduit, 0.9.0-alpha.3, adds a new `path_mut` method. --- Cargo.toml | 4 ++-- src/request.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 833c9e8..1beb6cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.1" edition = "2018" [dependencies] -conduit = "0.9.0-alpha.2" +conduit = "0.9.0-alpha.3" fastcgi = "1.0.0" http = "0.2.1" Inflector = "0.11.4" @@ -12,4 +12,4 @@ log = "0.4.8" snafu = "0.6.8" [dev-dependencies] -conduit-router = "0.9.0-alpha.2" +conduit-router = "0.9.0-alpha.3" diff --git a/src/request.rs b/src/request.rs index fb991bc..02f416e 100644 --- a/src/request.rs +++ b/src/request.rs @@ -256,6 +256,10 @@ impl<'a> conduit::RequestExt for FastCgiRequest<'a> { &self.path } + fn path_mut(&mut self) -> &mut String { + &mut self.path + } + fn query_string(&self) -> std::option::Option<&str> { self.query.as_ref() .map(|p| p.as_str()) -- cgit v1.2.3