Skip to content

Commit b87667a

Browse files
author
liguoliang
committed
修改判断位置
1 parent 0abcd43 commit b87667a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/DotNetCoreRpc.Client/RequestHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ private async Task<byte[]> SendRequest(MethodInfo methodInfo, params object[] ar
112112
? "/DotNetCoreRpc/ServerRequest" : "";
113113

114114
var responseMessage = await _httpClient.PostAsync(path, httpContent);
115-
byte[] result = await responseMessage.Content.ReadAsByteArrayAsync();
116115
//判断http请求状态
117116
responseMessage.EnsureSuccessStatusCode();
117+
118+
byte[] result = await responseMessage.Content.ReadAsByteArrayAsync();
118119
return result;
119120
}
120121
}

0 commit comments

Comments
 (0)