Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2017-04-17 14:07:45 +0300
committerbrantje <brantje@gmail.com>2017-05-06 14:32:18 +0300
commit8a694a0885e11575aa445c2073f16c4c8906373c (patch)
tree0cf32e8c5cbd909c0f1f67c8b3ddf53181fd8f12 /controller
parent38779463c84a097741ac7c9af20a9160f9aeaa23 (diff)
Disable database test. Fix tests.
Diffstat (limited to 'controller')
-rw-r--r--controller/internalcontroller.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/internalcontroller.php b/controller/internalcontroller.php
index 7e7bfa07..6b92c698 100644
--- a/controller/internalcontroller.php
+++ b/controller/internalcontroller.php
@@ -90,7 +90,9 @@ class InternalController extends ApiController {
* @NoAdminRequired
*/
public function generatePerson() {
- $random_person = json_decode(file_get_contents('http://api.namefake.com/'));
+ $context = [ 'http' => [ 'method' => 'GET' ], 'ssl' => [ 'verify_peer' => false, 'allow_self_signed'=> true ] ];
+ $context = stream_context_create($context);
+ $random_person = json_decode(file_get_contents('http://api.namefake.com/', false, $context));
return new JSONResponse($random_person);
}