Update static website 404 page

This commit is contained in:
2026-04-21 21:26:50 +08:00
parent c77c592832
commit 8935188c8f
4 changed files with 12 additions and 33 deletions

View File

@@ -3323,8 +3323,7 @@ async fn test_static_website_default_404_returns_html_body() {
)
.unwrap();
assert_eq!(body.len(), content_length);
assert!(body.contains("<h1>404 Not Found</h1>"));
assert!(body.len() > 512);
assert_eq!(body, "404 page not found");
let head_resp = app
.oneshot(website_request(Method::HEAD, "/missing.html"))