コード例 #1
0
ファイル: Jsonp.php プロジェクト: joselfonseca/api
 /**
  * Get the response content type.
  *
  * @return string
  */
 public function getContentType()
 {
     if ($this->hasValidCallback()) {
         return 'application/javascript';
     }
     return parent::getContentType();
 }