Test: remote handler get & request chan operations / Modify: GET request to remote server should return error http status code
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user