diff --git a/ecrire/public.php b/ecrire/public.php
index 1d75181578061f5f78898bdc1fe9cbd3a6838ca6..81b677116c252a0068441db9651e4b4a6ea1491d 100644
--- a/ecrire/public.php
+++ b/ecrire/public.php
@@ -52,16 +52,18 @@ if (defined('_INC_PUBLIC')) {
 
 	// Est-ce une action ?
 	if ($action = _request('action')) {
+		define('_ESPACE_PRIVE', true);
 		include_spip('inc/autoriser'); // chargement systematique pour les actions
 		include_spip('inc/headers');
 		$var_f = charger_fonction($action, 'action');
 		$var_f();
-		define('_ESPACE_PRIVE', true);
 		if ($GLOBALS['redirect']
 		OR $GLOBALS['redirect'] = _request('redirect'))
 			redirige_par_entete(urldecode($GLOBALS['redirect']));
-		if (!headers_sent())
-			http_status(204); // No Content
+
+#		# pour un appel ajax ca provoque une erreur 500
+#		if (!headers_sent())
+#			http_status(204); // No Content
 		exit;
 	}