working on JSON-LD validity, added CORS headers preparing external API
call support
This commit is contained in:
@@ -91,6 +91,7 @@ class request
|
||||
}
|
||||
if (
|
||||
!array_key_exists('pasteid', $this->_params) &&
|
||||
!array_key_exists('jsonld', $this->_params) &&
|
||||
array_key_exists('QUERY_STRING', $_SERVER) &&
|
||||
!empty($_SERVER['QUERY_STRING'])
|
||||
)
|
||||
@@ -117,6 +118,10 @@ class request
|
||||
$this->_operation = 'read';
|
||||
}
|
||||
}
|
||||
elseif (array_key_exists('jsonld', $this->_params) && !empty($this->_params['jsonld']))
|
||||
{
|
||||
$this->_operation = 'jsonld';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user