diff options
-rw-r--r-- | _test/tests/inc/httpclient_http_proxy.test.php | 2 | ||||
-rw-r--r-- | inc/HTTPClient.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/_test/tests/inc/httpclient_http_proxy.test.php b/_test/tests/inc/httpclient_http_proxy.test.php index c44dc7ed7..79b8f8e5e 100644 --- a/_test/tests/inc/httpclient_http_proxy.test.php +++ b/_test/tests/inc/httpclient_http_proxy.test.php @@ -15,7 +15,7 @@ class httpclient_http_proxy_test extends DokuWikiTest { $http->proxy_port = 8080; $data = $http->get($this->url); - $this->assertFalse($data === false, 'HTTP response '.$http->error); + $this->assertFalse($data === false, 'HTTP response: '.$http->error.' ['.$this->url.']'); $this->assertTrue(strpos($data,'DokuWiki') !== false, 'response content'); } }
\ No newline at end of file diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 76d973c38..24b3a8d78 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -604,6 +604,8 @@ class HTTPClient { $requesturl = $requestinfo['path']; return true; } + + throw new HTTPClientException('Failed to set up crypto for secure proxy connection', -151); } throw new HTTPClientException('Failed to establish secure proxy connection', -150); |