[Rt-commit] r2297 - in rt/branches/3.4-RELEASE: . html/REST/1.0 html/REST/1.0/NoAuth

jesse at bestpractical.com jesse at bestpractical.com
Sun Mar 6 17:32:12 EST 2005


Author: jesse
Date: Sun Mar  6 17:32:12 2005
New Revision: 2297

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/REST/1.0/NoAuth/mail-gateway
   rt/branches/3.4-RELEASE/html/REST/1.0/autohandler
Log:
 r6453 at hualien:  jesse | 2005-03-06 14:53:44 -0500
  r2567 at hualien:  jesse | 2005-01-06 16:37:01 -0500
  RT-Ticket: 6338
  RT-Status: resolved
  RT-Update: correspond
  
  Force UTF8 content type on replies from RT's REST interface (Thanks to Dirk Pape)
  
  
 


Modified: rt/branches/3.4-RELEASE/html/REST/1.0/NoAuth/mail-gateway
==============================================================================
--- rt/branches/3.4-RELEASE/html/REST/1.0/NoAuth/mail-gateway	(original)
+++ rt/branches/3.4-RELEASE/html/REST/1.0/NoAuth/mail-gateway	Sun Mar  6 17:32:12 2005
@@ -54,6 +54,8 @@
 </%ARGS>
 <%init>
 use RT::Interface::Email; 
+$r->content_type('text/plain; charset=utf-8');
+$m->error_format('text');
 my ( $status, $error, $Ticket ) = RT::Interface::Email::Gateway(\%ARGS);
  if ($status == -75 ) {
 $m->out("temporary failure - ". $error);

Modified: rt/branches/3.4-RELEASE/html/REST/1.0/autohandler
==============================================================================
--- rt/branches/3.4-RELEASE/html/REST/1.0/autohandler	(original)
+++ rt/branches/3.4-RELEASE/html/REST/1.0/autohandler	Sun Mar  6 17:32:12 2005
@@ -47,7 +47,7 @@
 %#
 <%INIT>
 use RT::Interface::REST;
-$r->content_type('text/plain');
+$r->content_type('text/plain; charset=utf-8');
 $m->error_format('text');
 $m->call_next();
 $m->abort();


More information about the Rt-commit mailing list