Skip to content

Commit

Permalink
feat: add content length log
Browse files Browse the repository at this point in the history
  • Loading branch information
FGYFFFF committed Jan 7, 2025
1 parent 610a2eb commit 02354e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/protocol/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ func (req *Request) BodyE() ([]byte, error) {
return req.bodyRaw, nil
}
if req.IsBodyStream() {
hlog.Infof("[Hertz]is body stream")
fmt.Printf("[Hertz]is body stream")
hlog.Infof("[Hertz]is body stream, content-length: %d", req.Header.ContentLength())
fmt.Printf("[Hertz]is body stream, content-length: %d", req.Header.ContentLength())
bodyBuf := req.BodyBuffer()
bodyBuf.Reset()
zw := network.NewWriter(bodyBuf)
Expand Down

0 comments on commit 02354e7

Please sign in to comment.