From ba9bea3e26dc5533315f1103fb87301cc3c64742 Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Thu, 5 Sep 2024 10:38:09 -0500 Subject: [PATCH] atttempt to read req body --- Server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server.go b/Server.go index a426ebb..04b3063 100644 --- a/Server.go +++ b/Server.go @@ -185,7 +185,7 @@ func (s *server) handleConnection(conn net.Conn) { }) } - // Read the body + // Read the body, if any if contentLength := ctx.request.Header("Content-Length"); contentLength != "" { length, _ := strconv.Atoi(contentLength) ctx.request.body = make([]byte, length)