Changeset 1049 for branches/1.0.x

Show
Ignore:
Timestamp:
07/30/08 09:18:29 (4 months ago)
Author:
bballizlife
Message:

fix bug #660: jResponseJsonrpc should use the Content-Type 'application/json' as jResponseJson already does

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.x/lib/jelix/core/response/jResponseJsonrpc.class.php

    r968 r1049  
    3636        global $gJCoord; 
    3737 
    38         $this->_httpHeaders['Content-Type'] = "text/plain"; 
     38        $this->_httpHeaders['Content-Type'] = "application/json"; 
    3939        if($gJCoord->request->jsonRequestId !== null){ 
    4040            $content = jJsonRpc::encodeResponse($this->response, $gJCoord->request->jsonRequestId); 
     
    6464        $this->_httpStatusCode ='500'; 
    6565        $this->_httpStatusMsg ='Internal Server Error'; 
    66         $this->_httpHeaders['Content-Type'] = "text/plain"; 
     66        $this->_httpHeaders['Content-Type'] = "application/json"; 
    6767        $content = jJsonRpc::encodeFaultResponse($errorCode,$errorMessage, $gJCoord->request->jsonRequestId); 
    6868        $this->_httpHeaders['Content-length'] = strlen($content); 
Download in other formats: Unified Diff Zip Archive