ghttp updates

This commit is contained in:
John
2019-01-24 13:50:26 +08:00
parent a488d1dbf7
commit 141ea7cc2d

View File

@ -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)
}
}