You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/10/15 23:52:43 UTC

svn commit: r321502 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

Author: pquerna
Date: Sat Oct 15 14:52:42 2005
New Revision: 321502

URL: http://svn.apache.org/viewcvs?rev=321502&view=rev
Log:
Set the output content type correctly for AJAX requests.  This caused the UI to stall, since the browser didn't like text/html at all.

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c
URL: http://svn.apache.org/viewcvs/httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c?rev=321502&r1=321501&r2=321502&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Sat Oct 15 14:52:42 2005
@@ -277,7 +277,7 @@
     /* AJAX requests return XML */
     if (strncmp(r->path_info, "/ajax", 5) == 0) {
 	/* Set content type */
-        ap_set_content_type(r, "text/html");
+        ap_set_content_type(r, "application/xml");
 
 	if (r->header_only) {
 	    return OK;