[Rt-commit] r2048 - in rt/branches/3.2-RELEASE: . html/REST/1.0
html/REST/1.0/NoAuth
jesse at bestpractical.com
jesse at bestpractical.com
Thu Jan 6 16:59:57 EST 2005
Author: jesse
Date: Thu Jan 6 16:59:56 2005
New Revision: 2048
Modified:
rt/branches/3.2-RELEASE/ (props changed)
rt/branches/3.2-RELEASE/html/REST/1.0/NoAuth/mail-gateway
rt/branches/3.2-RELEASE/html/REST/1.0/autohandler
Log:
r2567 at hualien: jesse | 2005-01-06T21:37:01.275075Z
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.2-RELEASE/html/REST/1.0/NoAuth/mail-gateway
==============================================================================
--- rt/branches/3.2-RELEASE/html/REST/1.0/NoAuth/mail-gateway (original)
+++ rt/branches/3.2-RELEASE/html/REST/1.0/NoAuth/mail-gateway Thu Jan 6 16:59:56 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.2-RELEASE/html/REST/1.0/autohandler
==============================================================================
--- rt/branches/3.2-RELEASE/html/REST/1.0/autohandler (original)
+++ rt/branches/3.2-RELEASE/html/REST/1.0/autohandler Thu Jan 6 16:59:56 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