Add semi-colon onto padding to be safe.
This commit is contained in:
parent
404b59730a
commit
4f5cc0cd97
|
@ -115,7 +115,7 @@ public static function jsonp($callback, $data, $status = 200, $headers = array()
|
||||||
{
|
{
|
||||||
$headers['Content-Type'] = 'application/javascript; charset=utf-8';
|
$headers['Content-Type'] = 'application/javascript; charset=utf-8';
|
||||||
|
|
||||||
return new static($callback.'('.json_encode($data).')', $status, $headers);
|
return new static($callback.'('.json_encode($data).');', $status, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue