mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-02 15:36:29 +00:00
- Removed some useless debug
- Increased httpserver update interval
This commit is contained in:
parent
368c122dce
commit
a73d3132df
@ -1535,7 +1535,7 @@ bool GUI::initWebUi(QString username, QString password, int port)
|
||||
httpServer->close();
|
||||
}
|
||||
else
|
||||
httpServer = new HttpServer(BTSession, 2000, this);
|
||||
httpServer = new HttpServer(BTSession, 3000, this);
|
||||
httpServer->setAuthorization(username, password);
|
||||
bool success = httpServer->listen(QHostAddress::Any, port);
|
||||
if (success)
|
||||
|
@ -92,13 +92,13 @@ void HttpRequestParser::write(QByteArray str)
|
||||
data.clear();
|
||||
QUrl url = QUrl::fromEncoded(QHttpRequestHeader::path().toAscii());
|
||||
path = url.path();
|
||||
qDebug() << path;
|
||||
//() << path;
|
||||
QListIterator<QPair<QString, QString> > i(url.queryItems());
|
||||
while (i.hasNext())
|
||||
{
|
||||
QPair<QString, QString> pair = i.next();
|
||||
getMap[pair.first] = pair.second;
|
||||
qDebug() << pair.first << "=" << get(pair.first);
|
||||
//qDebug() << pair.first << "=" << get(pair.first);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ void HttpRequestParser::write(QByteArray str)
|
||||
{
|
||||
QPair<QString, QString> pair = i.next();
|
||||
postMap[pair.first] = pair.second;
|
||||
qDebug() << pair.first << "=" << post(pair.first);
|
||||
//qDebug() << pair.first << "=" << post(pair.first);
|
||||
}
|
||||
}
|
||||
if(contentType() == "multipart/form-data")
|
||||
@ -135,5 +135,4 @@ void HttpRequestParser::write(QByteArray str)
|
||||
else
|
||||
error = true;
|
||||
}
|
||||
qDebug() << "isError: " << isError();
|
||||
}
|
||||
|
@ -76,7 +76,6 @@ void HttpServer::newHttpConnection()
|
||||
|
||||
void HttpServer::onTimer()
|
||||
{
|
||||
qDebug("EventManager Timer Start");
|
||||
QStringList list = BTSession->getUnfinishedTorrents();
|
||||
foreach(QString hash, list) {
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
@ -87,7 +86,6 @@ void HttpServer::onTimer()
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid()) manager->modifiedTorrent(h);
|
||||
}
|
||||
qDebug("EventManager Timer Stop");
|
||||
}
|
||||
|
||||
void HttpServer::setAuthorization(QString username, QString password)
|
||||
|
Loading…
Reference in New Issue
Block a user