Fix page encoding leading to javascript errors

This commit is contained in:
emanuele-f 2017-12-04 10:28:15 +01:00
parent e624e585e3
commit 567316827f
2 changed files with 1 additions and 3 deletions

View file

@ -6,8 +6,7 @@ dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
--[[ Note: keep the old iso-8859-1 encoding to avoid breaking existing passwords ]]
sendHTTPContentTypeHeader('text/html', nil, 'iso-8859-1')
sendHTTPContentTypeHeader('text/html')
if(haveAdminPrivileges()) then
interface.select(ifname)