mirror of
https://github.com/eolinker/apinto
synced 2025-11-01 04:22:40 +08:00
完善部分插件的测试用例,以及setbody操作更新body长度
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user