完善部分插件的测试用例,以及setbody操作更新body长度

This commit is contained in:
zeke
2021-12-28 17:11:00 +08:00
parent 35a704f8e4
commit d16021befe
4 changed files with 227 additions and 7 deletions

View File

@@ -85,5 +85,6 @@ func (r *Response) SetProxyStatus(code int, status string) {
func (r *Response) SetBody(bytes []byte) {
r.Response.SetBody(bytes)
r.SetHeader("Content-Length", strconv.Itoa(len(bytes)))
r.responseError = nil
}