Пример #1
0
 function getHTTPContentType()
 {
     if (count($this->responseAttachments) > 0) {
         return $this->dimeContentType;
     }
     return parent::getHTTPContentType();
 }
Пример #2
0
	/**
	* gets the HTTP content type for the current response.
	*
	* Note: getHTTPBody must be called before this.
	*
	* @return string the HTTP content type for the current response.
	* @access private
	*/
	function getHTTPContentType() {
		if (!empty($this->responseAttachments)) {
			return $this->mimeContentType;
		}
		return parent::getHTTPContentType();
	}