Skip to content

Commit 5921419

Browse files
committed
Update towe-http to 0.6.7
1 parent d42cc68 commit 5921419

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

pixie-server/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixie-server/src/http.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,12 @@ pub async fn main(state: Arc<State>) -> Result<()> {
205205
ServeDir::new(&admin_path).append_index_html_on_directories(true),
206206
);
207207
if let Some(password) = password {
208-
router = router.layer(ValidateRequestHeaderLayer::basic("admin", password));
208+
router = router.layer(
209+
#[allow(deprecated)]
210+
// `ValidateRequestHeaderLayer::basic` is deprecated because it's "too simple for an
211+
// actual use case", well... here's a use case
212+
ValidateRequestHeaderLayer::basic("admin", password),
213+
);
209214
}
210215
router = router.layer(TraceLayer::new_for_http());
211216

0 commit comments

Comments
 (0)