atttempt to read req body
This commit is contained in:
parent
bbe2bd44f9
commit
ba9bea3e26
|
@ -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 != "" {
|
if contentLength := ctx.request.Header("Content-Length"); contentLength != "" {
|
||||||
length, _ := strconv.Atoi(contentLength)
|
length, _ := strconv.Atoi(contentLength)
|
||||||
ctx.request.body = make([]byte, length)
|
ctx.request.body = make([]byte, length)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user