summaryrefslogtreecommitdiff
path: root/tntconfig.cpp
diff options
context:
space:
mode:
authorSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-07-19 21:19:44 +0000
committerSascha Volkenandt <sascha (at) akv-soft (dot) de>2007-07-19 21:19:44 +0000
commitb40d2c550444c61c25a1c2ec2dbd472dd11d2b62 (patch)
tree9e6f69e97ab8a44f037add988f3c80b1c408fec8 /tntconfig.cpp
parent0ff607eb3b557f24f1e173be00323d89068df662 (diff)
downloadvdr-plugin-live-b40d2c550444c61c25a1c2ec2dbd472dd11d2b62.tar.gz
vdr-plugin-live-b40d2c550444c61c25a1c2ec2dbd472dd11d2b62.tar.bz2
- added support for sending vdr's internally used character encoding in responses
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r--tntconfig.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp
index 7f412ba..1094b8a 100644
--- a/tntconfig.cpp
+++ b/tntconfig.cpp
@@ -5,6 +5,7 @@
#include <stdexcept>
#include <vdr/config.h>
#include <vdr/plugin.h>
+#include "i18n.h"
#include "live.h"
#include "setup.h"
#include "tntconfig.h"
@@ -57,6 +58,7 @@ void TntConfig::WriteConfig()
file << "MapUrl /([^.]+)(\\..+)? $1@" << endl;
file << "PropertyFile " << m_propertiesPath << endl;
file << "SessionTimeout 86400" << endl;
+ file << "DefaultContentType \"text/html; charset=" << LiveI18n().CharacterEncoding() << "\"" << endl;
Setup::IpList const& ips = LiveSetup().GetServerIps();
int port = LiveSetup().GetServerPort();