nhttpd: exchange encode with outValur for right UTF-8 in file API name

field. Used by WebKit.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1686 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
yjogol
2011-09-09 18:33:03 +00:00
parent 3a437bb7d5
commit e2e1b26251

View File

@@ -2712,7 +2712,7 @@ void CControlAPI::FileCGI(CyhookHandler *hh) {
while ((entry = readdir(dirp))) {
std::string item = "";
item += hh->outPair("name",
hh->outValue(encodeString(entry->d_name)), true);
hh->outValue(hh->outValue(entry->d_name)), true);
std::string ftype;
if (entry->d_type == DT_DIR)
ftype = "dir";