mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-09 21:34:20 +00:00
Less verbose debug
This commit is contained in:
parent
405b804eb5
commit
1ad1498c5d
@ -66,7 +66,6 @@ const QByteArray& HttpRequestParser::torrent() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void HttpRequestParser::write(const QByteArray& ba) {
|
void HttpRequestParser::write(const QByteArray& ba) {
|
||||||
qDebug() << Q_FUNC_INFO << "ba.size(): " << ba.size();
|
|
||||||
int end_of_header = ba.indexOf("\r\n\r\n");
|
int end_of_header = ba.indexOf("\r\n\r\n");
|
||||||
if (end_of_header < 0) {
|
if (end_of_header < 0) {
|
||||||
qWarning() << "Could not find HTTP header: " << ba.constData();
|
qWarning() << "Could not find HTTP header: " << ba.constData();
|
||||||
@ -88,6 +87,7 @@ void HttpRequestParser::write(const QByteArray& ba) {
|
|||||||
|
|
||||||
// Parse message content
|
// Parse message content
|
||||||
if (m_header.hasContentLength()) {
|
if (m_header.hasContentLength()) {
|
||||||
|
qDebug() << Q_FUNC_INFO << "ba.size(): " << ba.size();
|
||||||
qDebug() << Q_FUNC_INFO << "\n\n" << "header: " << ba.left(end_of_header) << "\n\n";
|
qDebug() << Q_FUNC_INFO << "\n\n" << "header: " << ba.left(end_of_header) << "\n\n";
|
||||||
m_data = ba.mid(end_of_header + 4, m_header.contentLength()); // +4 to skip "\r\n\r\n"
|
m_data = ba.mid(end_of_header + 4, m_header.contentLength()); // +4 to skip "\r\n\r\n"
|
||||||
qDebug() << "m_data.size(): " << m_data.size();
|
qDebug() << "m_data.size(): " << m_data.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user