[Rt-commit] [svn] r1196 - in rt/branches/rt-3.1: bin html/Search
alexmv at pallas.eruditorum.org
alexmv at pallas.eruditorum.org
Fri Jul 9 10:56:04 EDT 2004
Author: alexmv
Date: Fri Jul 9 10:56:03 2004
New Revision: 1196
Modified:
rt/branches/rt-3.1/bin/webmux.pl.in
rt/branches/rt-3.1/html/Search/Results.rdf
Log:
RT-Ticket: 5838
RT-Status: resolved
RT-Update: correspond
* Fix webmux.pl to not pass xml files through (xml's content-type is
application/xml not text/xml)
* Fix outgoing content-type of results.rdf
Modified: rt/branches/rt-3.1/bin/webmux.pl.in
==============================================================================
--- rt/branches/rt-3.1/bin/webmux.pl.in (original)
+++ rt/branches/rt-3.1/bin/webmux.pl.in Fri Jul 9 10:56:03 2004
@@ -137,8 +137,8 @@
RT::Init();
- # We don't need to handle non-text items
- return -1 if defined( $r->content_type ) && $r->content_type !~ m|^text/|io;
+ # We don't need to handle non-text, non-xml items
+ return -1 if defined( $r->content_type ) && $r->content_type !~ m!(^text/|\bxml\b)!io;
my %session;
my $status;
Modified: rt/branches/rt-3.1/html/Search/Results.rdf
==============================================================================
--- rt/branches/rt-3.1/html/Search/Results.rdf (original)
+++ rt/branches/rt-3.1/html/Search/Results.rdf Fri Jul 9 10:56:03 2004
@@ -2,7 +2,7 @@
my $Tickets = RT::Tickets->new($session{'CurrentUser'});
$Tickets->FromSQL($ARGS{'Query'});
- $r->content_type('xml/rss');
+$r->content_type('application/rdf+xml');
More information about the Rt-commit
mailing list