Compare commits
No commits in common. "46a42710e1b8a3bbbae7100d19e9fa62b959d2ce" and "864f94ba5d2e64a5aa183d3041249c8eaf0f07af" have entirely different histories.
46a42710e1
...
864f94ba5d
2 changed files with 1 additions and 8 deletions
|
@ -163,7 +163,6 @@ impl Content {
|
|||
"3gp" => "video/3gpp",
|
||||
"3gp2" => "video/3gpp2",
|
||||
"avi" => "video/x-msvideo",
|
||||
"mov" => "video/mov",
|
||||
"mp4" => "video/mp4",
|
||||
"mpeg" => "video/mpeg",
|
||||
"ogv" => "video/ogv",
|
||||
|
|
|
@ -18,13 +18,7 @@ fn main() {
|
|||
} else {
|
||||
&args[1]
|
||||
};
|
||||
println!("Starting server on {:?}", &host);
|
||||
|
||||
if args.len() > 2 {
|
||||
env::set_current_dir(&args[2]).expect("root dir specified must be valid path");
|
||||
println!("Set root dir to {}", &args[2]);
|
||||
}
|
||||
println!();
|
||||
println!("Starting server on {:?}...\n", &host);
|
||||
|
||||
let listener = TcpListener::bind(host).expect("Could not bind to address");
|
||||
|
||||
|
|
Loading…
Reference in a new issue