aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/server.rs b/examples/server.rs
index 864c105..464e564 100644
--- a/examples/server.rs
+++ b/examples/server.rs
@@ -19,6 +19,7 @@ fn main() {
fn handler(req: &mut dyn RequestExt) -> io::Result<Response<Body>> {
Ok(
Response::builder()
+ .status(202)
.header(header::CONTENT_TYPE, "text/html")
.body(Body::from_static(b"<h1>Test</h1>"))
.unwrap()