Subversion Repositories eFlore/Applications.coel

Rev

Rev 1536 | Rev 1578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1536 Rev 1577
Line 195... Line 195...
195
			header('X-DebugJrest-Data: '.json_encode($this->debug));
195
			header('X-DebugJrest-Data: '.json_encode($this->debug));
196
		}
196
		}
197
	}
197
	}
Line 198... Line 198...
198
	
198
	
-
 
199
	protected function envoyerContenu($encodage, $mime, $contenu) {
199
	protected function envoyerContenu($encodage, $mime, $contenu) {
200
		if (!is_null($mime) && !is_null($encodage)) {
-
 
201
			header("Content-Type: $mime; charset=$encodage");
-
 
202
		} else if (!is_null($mime) && is_null($encodage)) {
-
 
203
			header("Content-Type: $mime");
200
		header("Content-Type: $mime; charset=$encodage");
204
		}
201
		print $contenu;
205
		print $contenu;
Line 202... Line 206...
202
	}
206
	}
203
	
207