We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4fbd8b commit 6525d39Copy full SHA for 6525d39
static-files-middleware/Cargo.toml
@@ -10,4 +10,3 @@ edition = "2021"
10
my-http-server-core = { path = "../my-http-server-core" }
11
async-trait = "*"
12
tokio = { version = "*" }
13
-rust-extensions = { tag = "0.1.5", git = "https://github.com/MyJetTools/rust-extensions.git" }
static-files-middleware/src/middleware.rs
@@ -71,8 +71,8 @@ impl StaticFilesMiddleware {
71
}
72
73
74
- pub fn add_header(mut self, name: StrOrString<'static>, value: StrOrString<'static>) -> Self {
75
- self.headers.insert(name.to_string(), value.to_string());
+ pub fn add_header(mut self, name: impl Into<String>, value: impl Into<String>) -> Self {
+ self.headers.insert(name.into(), value.into());
76
self
77
78
0 commit comments