File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ component extends="EventHandler" {
425425 * When you need a really hard stop to prevent further execution ( use as last resort )
426426 */
427427 if ( arguments .abort ) {
428- event .setHTTPHeader ( name = " Content-Type" , value = " application/json" );
428+ event .setHTTPHeader ( name = " Content-Type" , value = " application/json; charset=utf-8 " );
429429 event .setHTTPHeader ( statusCode = " #arguments .event .STATUS .NOT_AUTHENTICATED #" );
430430
431431 writeOutput ( toJson ( prc .response .getDataPacket ( reset = this .resetDataOnError ) ) );
@@ -477,7 +477,7 @@ component extends="EventHandler" {
477477 * When you need a really hard stop to prevent further execution ( use as last resort )
478478 */
479479 if ( arguments .abort ) {
480- event .setHTTPHeader ( name = " Content-Type" , value = " application/json" );
480+ event .setHTTPHeader ( name = " Content-Type" , value = " application/json; charset=utf-8 " );
481481 event .setHTTPHeader ( statusCode = " #arguments .event .STATUS .NOT_AUTHORIZED #" );
482482
483483 writeOutput ( serializeJSON ( prc .response .getDataPacket ( reset = this .resetDataOnError ) ) );
Original file line number Diff line number Diff line change @@ -1744,7 +1744,7 @@ component serializable="false" accessors="true" {
17441744 // Automatic Content Types by marshalling type
17451745 switch ( rd .type ) {
17461746 case " JSON" : {
1747- rd .contenttype = " application/json" ;
1747+ rd .contenttype = " application/json; charset=# arguments . encoding # " ;
17481748 if ( arguments .jsonAsText ) {
17491749 rd .contentType = " text/plain" ;
17501750 }
You can’t perform that action at this time.
0 commit comments