Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 98984ff

Browse files
authored
Merge pull request #238 from Manishearth/fx-status
Respond with 200 OK, not 404 Not Found (fixes #237)
2 parents 4b4a81d + 61996c3 commit 98984ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/playpen.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ impl header::HeaderFormat for XXssProtection {
6464
}
6565

6666
fn index(_: &mut Request) -> IronResult<Response> {
67-
Ok(Response::with((Path::new("static/web.html"),
67+
Ok(Response::with((status::Ok,
68+
Path::new("static/web.html"),
6869
Header(XXssProtection(false)))))
6970
}
7071

0 commit comments

Comments
 (0)