diff --git a/framework/web/Response.php b/framework/web/Response.php index 1dfc10d..4180d79 100644 --- a/framework/web/Response.php +++ b/framework/web/Response.php @@ -130,7 +130,7 @@ class Response extends \yii\base\Response self::FORMAT_XML => 'yii\web\XmlResponseFormatter', self::FORMAT_JSON => 'yii\web\JsonResponseFormatter', self::FORMAT_JSONP => [ - 'class' => 'yii\web\HtmlResponseFormatter', + 'class' => 'yii\web\JsonResponseFormatter', 'useJsonp' => true, ], ];