Changeset 1049 for branches/1.0.x
- Timestamp:
- 07/30/08 09:18:29 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix/core/response/jResponseJsonrpc.class.php
r968 r1049 36 36 global $gJCoord; 37 37 38 $this->_httpHeaders['Content-Type'] = " text/plain";38 $this->_httpHeaders['Content-Type'] = "application/json"; 39 39 if($gJCoord->request->jsonRequestId !== null){ 40 40 $content = jJsonRpc::encodeResponse($this->response, $gJCoord->request->jsonRequestId); … … 64 64 $this->_httpStatusCode ='500'; 65 65 $this->_httpStatusMsg ='Internal Server Error'; 66 $this->_httpHeaders['Content-Type'] = " text/plain";66 $this->_httpHeaders['Content-Type'] = "application/json"; 67 67 $content = jJsonRpc::encodeFaultResponse($errorCode,$errorMessage, $gJCoord->request->jsonRequestId); 68 68 $this->_httpHeaders['Content-length'] = strlen($content);
