summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--program/steps/mail/spell_googie.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/program/steps/mail/spell_googie.inc b/program/steps/mail/spell_googie.inc
index 28d339d41..f3b1c684d 100644
--- a/program/steps/mail/spell_googie.inc
+++ b/program/steps/mail/spell_googie.inc
@@ -58,6 +58,13 @@ if ($fp = fsockopen($host, $port, $errno, $errstr, 30))
fclose($fp);
}
+// remove headers
+$pos = strpos($store, '<?xml');
+$store = substr($store, $pos);
+
+// set response length
+header("Content-Length: " . strlen($store));
+
// Don't use server's default Content-Type charset (#1486406)
header("Content-Type: text/xml; charset=".RCMAIL_CHARSET);
print $store;