Permalink
Browse files

Add User-Agent header (#85)

  • Loading branch information...
frmichel authored and lanthaler committed Nov 18, 2018
1 parent d4f28dd commit 0860d0e6e31c33933eb66fbb663613fbfbed32ad
Showing with 2 additions and 1 deletion.
  1. +2 −1 FileGetContentsLoader.php
@@ -31,7 +31,8 @@ public function loadDocument($url)
$streamContextOptions = array(
'method' => 'GET',
'header' => "Accept: application/ld+json, application/json; q=0.9, */*; q=0.1\r\n",
'header' => "Accept: application/ld+json, application/json; q=0.9, */*; q=0.1\r\n"
. "User-Agent: lanthaler JsonLD\r\n",
'timeout' => Processor::REMOTE_TIMEOUT
);

0 comments on commit 0860d0e

Please sign in to comment.