Skip to content

Commit 6525d39

Browse files
committed
Fixes
1 parent c4fbd8b commit 6525d39

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

static-files-middleware/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ edition = "2021"
1010
my-http-server-core = { path = "../my-http-server-core" }
1111
async-trait = "*"
1212
tokio = { version = "*" }
13-
rust-extensions = { tag = "0.1.5", git = "https://github.com/MyJetTools/rust-extensions.git" }

static-files-middleware/src/middleware.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ impl StaticFilesMiddleware {
7171
}
7272
}
7373

74-
pub fn add_header(mut self, name: StrOrString<'static>, value: StrOrString<'static>) -> Self {
75-
self.headers.insert(name.to_string(), value.to_string());
74+
pub fn add_header(mut self, name: impl Into<String>, value: impl Into<String>) -> Self {
75+
self.headers.insert(name.into(), value.into());
7676
self
7777
}
7878

0 commit comments

Comments
 (0)