Skip to content

Commit

Permalink
Delay switch to XHTML until user encodings are implemented...
Browse files Browse the repository at this point in the history
Webadmin is broken now with non-UTF8 channel names and usernames.
  • Loading branch information
DarthGandalf committed Apr 19, 2012
1 parent 6bf774d commit 543402c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HTTPSock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg
"</body>\r\n"
"</html>\r\n";

PrintHeader(sPage.length(), "application/xhtml+xml; charset=utf-8", uStatusId, sStatusMsg);
PrintHeader(sPage.length(), "text/html; charset=utf-8", uStatusId, sStatusMsg);
Write(sPage);
Close(Csock::CLT_AFTERWRITE);

Expand Down Expand Up @@ -492,7 +492,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, u
}

if (m_sContentType.empty()) {
m_sContentType = "application/xhtml+xml; charset=utf-8";
m_sContentType = "text/html; charset=utf-8";
}

DEBUG("- " << uStatusId << " (" << sStatusMsg << ") [" << m_sContentType << "]");
Expand Down

0 comments on commit 543402c

Please sign in to comment.