Test: remote handler get & request chan operations / Modify: GET request to remote server should return error http status code

This commit is contained in:
HFO4
2020-01-04 15:17:27 +08:00
parent aeca161186
commit 93dc25aabb
10 changed files with 249 additions and 44 deletions

View File

@@ -35,7 +35,7 @@ func RemoteCallback(url string, body serializer.RemoteUploadCallback) error {
}
// 检查返回HTTP状态码
rawResp, err := resp.GetResponse(200)
rawResp, err := resp.CheckHTTPResponse(200).GetResponse()
if err != nil {
return serializer.NewError(serializer.CodeCallbackError, "服务器返回异常响应", err)
}