body length

This commit is contained in:
zeke
2021-12-02 12:08:29 +08:00
parent 1a68efe2fc
commit 8cb38d3af8
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ func NewResponse(ctx *fasthttp.RequestCtx) *Response {
}
func (r *Response) BodyLen() int {
return r.header.Len()
return r.header.ContentLength()
}
func (r *Response) GetBody() []byte {