Skip to content

Commit

Permalink
Weaken HTTP Response Code check (Closes #278)
Browse files Browse the repository at this point in the history
  • Loading branch information
cinemast committed Oct 30, 2019
1 parent 662586e commit 5b51ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonrpccpp/client/connectors/httpclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void HttpClient::SendRPCMessage(const std::string &message,
long http_code = 0;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code);

if (http_code != 200) {
if (http_code / 100 != 2) {
throw JsonRpcException(Errors::ERROR_RPC_INTERNAL_ERROR, result);
}
}
Expand Down

0 comments on commit 5b51ae4

Please sign in to comment.