]> git.wh0rd.org - tt-rss.git/commitdiff
Changing error.php?mode=js from text/plain to text/javascript
authorPerry Werneck <perry.werneck@gmail.com>
Fri, 31 May 2013 20:37:12 +0000 (17:37 -0300)
committerPerry Werneck <perry.werneck@gmail.com>
Fri, 31 May 2013 20:37:12 +0000 (17:37 -0300)
Changing the js mimetype to text/javascript to avoid problems with some proxy configurations.

errors.php

index 405da09ccabdb453bb9b5edeaf9d23e815f1228e..f7333fd1af0098c4fba6bf1128e30fbfa9ad1990 100644 (file)
@@ -35,7 +35,7 @@
        $ERRORS[12] = __("SQL escaping test failed, check your database and PHP configuration");
 
        if ($_REQUEST['mode'] == 'js') {
-               header("Content-Type: text/plain; charset=UTF-8");
+               header("Content-Type: text/javascript; charset=UTF-8");
 
                print "var ERRORS = [];\n";