diff options
author | rojaro <> | 2010-05-31 17:07:44 +0000 |
---|---|---|
committer | rojaro <> | 2010-05-31 17:07:44 +0000 |
commit | 7bfa219a70920225c62fe32724ac0b126d354a53 (patch) | |
tree | 3e979eeb5a0d5e5279f28b3c4c07a060a595c3bd /framework/Util | |
parent | aaca72349e657f8a9ea793fb626e60606a0ad73c (diff) |
removed unneeded check and modified error message again
Diffstat (limited to 'framework/Util')
-rw-r--r-- | framework/Util/TRpcClient.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/Util/TRpcClient.php b/framework/Util/TRpcClient.php index 106e3b26..73ff25ed 100644 --- a/framework/Util/TRpcClient.php +++ b/framework/Util/TRpcClient.php @@ -110,10 +110,7 @@ class TRpcClient extends TApplicationComponent protected function performRequest($serverUrl, $payload, $mimeType) { if(($_response = @file_get_contents($serverUrl, false, $this->createStreamContext($payload, $mimeType))) === false) - throw new TRpcClientRequestException('Server did not respond with HTTP error code 200 ("'.$http_response_header[0].'")'); - - if(substr($http_response_header[0], -6) != '200 OK') - throw new TRpcClientResponseException('Server did not respond with HTTP error code 200 ("'.$http_response_header[0].'")'); + throw new TRpcClientRequestException('Request failed ("'.$http_response_header[0].'")'); return $_response; } |