mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
Web UI code clean up
This commit is contained in:
@@ -41,8 +41,10 @@ class HttpResponseGenerator : public QHttpResponseHeader
|
||||
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; }
|
||||
void setContentTypeByExt(const QString& ext);
|
||||
inline QByteArray toByteArray() const {
|
||||
return QHttpResponseHeader::toString().toLocal8Bit() + message;
|
||||
}
|
||||
|
||||
private:
|
||||
QByteArray message;
|
||||
|
||||
Reference in New Issue
Block a user