X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMailing%2FPage%2FPreview.php;h=7b96ff1cfd6878c59211b22cef05ccc5d208bf8b;hb=b5b9c34111a85625f587173394b3f48f6d205083;hp=3403c2a1c8f40ef50ed502fcf1991d896f2122b4;hpb=87d422669cee2e65706fe72821613ad846cd0adb;p=civicrm-core.git diff --git a/CRM/Mailing/Page/Preview.php b/CRM/Mailing/Page/Preview.php index 3403c2a1c8..7b96ff1cfd 100644 --- a/CRM/Mailing/Page/Preview.php +++ b/CRM/Mailing/Page/Preview.php @@ -1,9 +1,9 @@ getHTMLBody(); } else { - header('Content-Type: text/plain; charset=utf-8'); + CRM_Utils_System::setHttpHeader('Content-Type', 'text/plain; charset=utf-8'); print $mime->getTXTBody(); } CRM_Utils_System::civiExit(); } -} +}