Update to latest jsonld.js.
authorDave Longley <dlongley@digitalbazaar.com>
Mon, 03 Mar 2014 16:10:21 -0500
changeset 2133 0fa07d98cd8f
parent 2132 735083b40389
child 2134 d7fbcf6ba997
Update to latest jsonld.js.
playground/jsonld.js
--- a/playground/jsonld.js	Mon Mar 03 13:30:10 2014 -0500
+++ b/playground/jsonld.js	Mon Mar 03 16:10:21 2014 -0500
@@ -1379,6 +1379,9 @@
     }
     request({
       url: url,
+      headers: {
+        'Accept': 'application/ld+json, application/json'
+      },
       strictSSL: true,
       followRedirect: false
     }, function(err, res, body) {
@@ -1533,6 +1536,8 @@
         {contextUrl: null, documentUrl: url, document: null});
     };
     req.open('GET', url, true);
+    req.setRequestHeader('Accept', 'application/ld+json, application/json');
+    req.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
     req.send();
   };