svn: /web/doc-editor/trunk/php/ controller.php

[email protected] (Neal Poole)
Newsgroups php.doc.web
Message-ID <[email protected]>
nbpoole                                  Mon, 20 Jun 2011 22:03:50 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312349

Log:
Adding content-type and charset headers to response.

Changed paths:
    U   web/doc-editor/trunk/php/controller.php

Modified: web/doc-editor/trunk/php/controller.php
===================================================================
--- web/doc-editor/trunk/php/controller.php	2011-06-20 21:52:18 UTC (rev 312348)
+++ web/doc-editor/trunk/php/controller.php	2011-06-20 22:03:50 UTC (rev 312349)
@@ -24,6 +24,8 @@
     );
 }

+header('Content-type: text/plain; charset=utf-8');
+header('X-Content-Type-Options: nosniff');
 header('Content-Length:' . strlen($response));
 echo $response;
 exit;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.