Ticket #11537: class-json_1.0.1.diff
File class-json_1.0.1.diff, 810 bytes (added by , 15 years ago) |
---|
-
class-json.php
50 50 * @author Matt Knapp <mdknapp[at]gmail[dot]com> 51 51 * @author Brett Stimmerman <brettstimmerman[at]gmail[dot]com> 52 52 * @copyright 2005 Michal Migurski 53 * @version CVS: $Id: JSON.php,v 1.3 2009/05/22 23:51:00 alan_k Exp$53 * @version CVS: $Id: JSON.php 288200 2009-09-09 15:41:29Z alan_k $ 54 54 * @license http://www.opensource.org/licenses/bsd-license.php 55 55 * @link http://pear.php.net/pepr/pepr-proposal-show.php?id=198 56 56 */ … … 235 235 */ 236 236 function encode($var) 237 237 { 238 header('Content-type: application/ x-javascript');238 header('Content-type: application/json'); 239 239 return $this->_encode($var); 240 240 } 241 241 /**