mirror of
https://github.com/eolinker/apinto
synced 2025-11-01 12:32:38 +08:00
body length
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user