This commit is contained in:
chrislu
2025-09-12 12:57:05 -07:00
parent ec1317b910
commit 0bb866e57c
-2
View File
@@ -156,7 +156,6 @@ func (h *Handler) HandleConn(conn net.Conn) error {
conn.Close()
}()
r := bufio.NewReader(conn)
w := bufio.NewWriter(conn)
defer w.Flush()
@@ -274,7 +273,6 @@ func (h *Handler) HandleConn(conn net.Conn) error {
return fmt.Errorf("handle request: %w", err)
}
// Write response size and data
responseSizeBytes := make([]byte, 4)
binary.BigEndian.PutUint32(responseSizeBytes, uint32(len(response)))