Skip to content
Snippets Groups Projects
Commit 26d159f0 authored by Lucas García's avatar Lucas García
Browse files

fix: do_request error handling status code checker

parent 6426fe2c
No related branches found
No related tags found
1 merge request!2Git submodules
......@@ -134,7 +134,7 @@ class Http_Client
return (array) json_decode($response->body, true);
};
if ($response->response['status'] !== 200) {
if ($response->response['code'] !== 200) {
return new WP_Error(
'wpct_http_error',
__("Http error response status code: Request to {$url} with {$args['method']} method", 'wpct-http-bridge'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment