diff options
author | Teddy Wing | 2020-07-17 00:22:26 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-17 00:22:26 +0200 |
commit | eda49deb67195b0348b013222bb077ac7d381e31 (patch) | |
tree | 9a02c0d8dbed8991f3ffc25cac10c663bfdeef30 | |
parent | cb431ca122262e6ef4e3fea11d0efb094ab3a8a2 (diff) | |
download | fastcgi-conduit-eda49deb67195b0348b013222bb077ac7d381e31.tar.bz2 |
FastCgiRequest: Implement `conduit::RequestExt::path_mut`
The latest version of Conduit, 0.9.0-alpha.3, adds a new `path_mut`
method.
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/request.rs | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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()) |