|
|
@ -447,7 +447,7 @@ class Engine {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function _jsonp($data) {
|
|
|
|
public function _jsonp($data) {
|
|
|
|
// Get the callback value (eg '?jsonp=my_function') and pad the output
|
|
|
|
// Get the callback value (eg '?jsonp=my_function') and pad the output
|
|
|
|
$callback = \Flight::request()->query[ $this->get('flight.jsonp.callback') ];
|
|
|
|
$callback = $this->request()->query[ $this->get('flight.jsonp.callback') ];
|
|
|
|
$this->response()
|
|
|
|
$this->response()
|
|
|
|
->status(200)
|
|
|
|
->status(200)
|
|
|
|
->header('Content-Type', 'application/javascript')
|
|
|
|
->header('Content-Type', 'application/javascript')
|
|
|
|