mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
ghttp updates
This commit is contained in:
@ -233,7 +233,7 @@ func (s *Server) serveFile(r *Request, path string) {
|
||||
}
|
||||
} else {
|
||||
// 读取文件内容返回, no buffer
|
||||
http.ServeContent(r.Response.Writer, &r.Request, info.Name(), info.ModTime(), f)
|
||||
http.ServeContent(r.Response.Writer, r.Request, info.Name(), info.ModTime(), f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user