fixed Content-Type for various controllers

This commit is contained in:
Luis Ángel San Martín
2016-01-25 21:22:39 +01:00
parent 88056c819f
commit cfffc1bae8
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ FolderInfoController::FolderInfoController() {}
void FolderInfoController::service(HttpRequest& request, HttpResponse& response)
{
response.setHeader("Content-Type", "plain/text; charset=utf-8");
response.setHeader("Content-Type", "text/plain; charset=utf-8");
QString path = QUrl::fromPercentEncoding(request.getPath()).toUtf8();
QStringList pathElements = path.split('/');