eolinker / apinto

基于golang开发的网关。具有各种插件,可以自行扩展,即插即用。此外,它可以快速帮助企业管理API服务,提高API服务的稳定性和安全性。
https://www.apinto.com
Apache License 2.0
1.34k stars 198 forks source link

bug: 当服务端不返回content-length时,网关输出的access中,response-length为-1 #154

Open dongsoft opened 5 months ago

dongsoft commented 5 months ago

Current Behavior

错误的返回响应体大小为-1

Expected Behavior

应当为实际的响应体大小

Error Logs

fe0cc28d74fdf5d1f12f4adebc525c7

![Uploading image.png…]()

Steps to Reproduce

1

Environment

Apinto version: 2024032714- Golang version: go version go1.19.13 linux/amd64 Git commit hash: Built on: 2024-03-27T06:50:19Z Built by: gitlab Built by eosc version: v0.16.1

dongsoft commented 5 months ago

"response": [ "$response_header", "$response_body", "$response_length", "$length" ],