diff --git a/jsonld.php b/jsonld.php index 557d2b8..1859a10 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ array( 'method' => 'GET', 'header' => - "Accept: application/ld+json\r\n" . - "User-Agent: JSON-LD PHP Client/1.0\r\n"), - 'https' => array( - 'verify_peer' => true, - 'method' => 'GET', - 'header' => - "Accept: application/ld+json\r\n" . - "User-Agent: JSON-LD PHP Client/1.0\r\n")); + "Accept: application/ld+json\r\n"), + 'ssl' => array('verify_peer' => true)); $context = stream_context_create($opts); $content_type = null; stream_context_set_params($context, array('notification' => @@ -397,12 +391,11 @@ function jsonld_default_secure_document_loader($url) { // default JSON-LD https GET implementation $opts = array( - 'https' => array( - 'verify_peer' => true, - 'method' => "GET", + 'http' => array( + 'method' => 'GET', 'header' => - "Accept: application/ld+json\r\n" . - "User-Agent: JSON-LD PHP Client/1.0\r\n")); + "Accept: application/ld+json\r\n"), + 'ssl' => array('verify_peer' => true)); $context = stream_context_create($opts); $content_type = null; stream_context_set_params($context, array('notification' =>