浏览代码

fix(server) typo

Signed-off-by: Daniel Thompson-Yvetot <denjell@quasar.dev>
Daniel Thompson-Yvetot 6 年之前
父节点
当前提交
58af6c1abb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/rust/src/server.rs

+ 1 - 1
lib/rust/src/server.rs

@@ -17,7 +17,7 @@ pub fn asset_response(path: &str) -> Response<std::io::Cursor<Vec<u8>>> {
   } else if path.ends_with(".html") {
     header = Header::from_bytes(&b"Content-Type"[..], &b"text/html"[..]).unwrap();
   } else {
-    header = Header::from_bytes(&b"Content-Type"[..], &b"appication/octet-stream"[..]).unwrap();
+    header = Header::from_bytes(&b"Content-Type"[..], &b"application/octet-stream"[..]).unwrap();
   }
 
   response.add_header(header);