feat: add keep-alive
This commit is contained in:
2 files changed
+13
-6
No files matched your search
@@ -56,8 +56,6 @@ func HandleHTTPRequest(headers Headers, conn net.Conn) {
|
||||
|
||||
defer file.Close()
|
||||
sendFile(file, conn)
|
||||
|
||||
conn.Close()
|
||||
}
|
||||
|
||||
func sendFile(file *os.File, conn net.Conn) {
|
||||
|
||||
Reference in new issue
Block a user