Clean up Web UI code

This commit is contained in:
Christophe Dumez
2011-09-25 14:37:04 +03:00
parent 61faf34ef7
commit 5fe562c0fa
3 changed files with 2 additions and 7 deletions

View File

@@ -40,10 +40,9 @@ class HttpResponseGenerator : public QHttpResponseHeader
public:
void setMessage(const QByteArray& message);
void setMessage(const QString& message);
void stripMessage();
void setContentTypeByExt(const QString& ext);
inline QByteArray toByteArray() const {
return QHttpResponseHeader::toString().toLocal8Bit() + message;
return QHttpResponseHeader::toString().toUtf8() + message;
}
private: