Cody Joyce 2 月之前
父節點
當前提交
d2b5ec36c5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      srv/res.go

+ 2 - 1
srv/res.go

@@ -30,8 +30,9 @@ func (res *Res) Send(txt string) {
 	fmt.Fprint(res.w, txt)
 }
 
-func (res *Res) File(filePath string) error {
+func (res *Res) File(filePath string) {
 	http.ServeFile(res.w, res.r, filePath)
+
 	// file, err := os.Open(filePath)
 	// if err != nil {
 	// 	utils.Err(err)