~repos /rust-embed
git clone https://pyrossh.dev/repos/rust-embed.git
rust macro which loads files into the rust binary at compile time during release and loads the file from the fs during dev.
87e6c4f8
—
pyros2097 8 years ago
Fix http example
- examples/http.rs +1 -1
examples/http.rs
CHANGED
|
@@ -11,7 +11,7 @@ fn handle_index(req: Request, res: Response) {
|
|
|
11
11
|
AbsolutePath(ref path) => {
|
|
12
12
|
println!("GET {:?}", &path);
|
|
13
13
|
if &path[..] == "/" {
|
|
14
|
-
res.send(&assets::
|
|
14
|
+
res.send(&assets::examples_public_index_html).unwrap();
|
|
15
15
|
} else {
|
|
16
16
|
res.send(assets::get(&path[1..path.len()]).unwrap()).unwrap();
|
|
17
17
|
}
|