mirror of https://github.com/mohtar/rust-fastcgi
Better example
This commit is contained in:
parent
bcd8d387f1
commit
67328baab7
|
@ -5,6 +5,6 @@ use std::io::Write;
|
|||
fn main() {
|
||||
fastcgi::run(|mut req| {
|
||||
write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
|
||||
.unwrap();
|
||||
.unwrap_or(());
|
||||
});
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
//! fn main() {
|
||||
//! fastcgi::run(|mut req| {
|
||||
//! write!(&mut req.stdout(), "Content-Type: text/plain\n\nHello, world!")
|
||||
//! .unwrap();
|
||||
//! .unwrap_or(());
|
||||
//! });
|
||||
//! }
|
||||
|
||||
|
|
Loading…
Reference in New Issue