diff options
Diffstat (limited to 'webproxyconn.cc')
-rw-r--r-- | webproxyconn.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/webproxyconn.cc b/webproxyconn.cc index 8369417..fa4bc9d 100644 --- a/webproxyconn.cc +++ b/webproxyconn.cc @@ -78,9 +78,6 @@ QByteArray WebProxyConn::removeHeaders(const QByteArray &req) int offset = 0; int next; - qDebug() << req; - qDebug() << "--- end ---"; - while ((next = req.indexOf('\n', offset)) > 0) { QByteArray line = req.mid(offset, next - offset).trimmed(); if (line.isEmpty()) { @@ -110,7 +107,7 @@ void WebProxyConn::handleRequest(const Message &msg) connect(trans, SIGNAL(dataReceived(QByteArray)), this, SLOT(handleTransDataReceived(QByteArray))); connect(trans, SIGNAL(disconnected()), this, SLOT(handleTransDisconnected())); - // Discard request body if it was a CONNECT request. + // Discard request body, but if it was a CONNECT request. if (hdr.connect) { payload = removeHeaders(payload); } @@ -119,7 +116,6 @@ void WebProxyConn::handleRequest(const Message &msg) } if (!payload.isEmpty()) { - qDebug() << "Sending" << msg.transactionId << QString::fromLatin1(payload.mid(0, 30)) << "-"; trans->write(payload); } } @@ -168,8 +164,6 @@ void WebProxyConn::handleTransDataReceived(const QByteArray &data) msg.transactionId = trans->transactionId(); msg.payload = data; - qDebug() << "Receiving" << msg.transactionId << QString::fromLatin1(data.mid(0, 30)) << "-"; - sendMessage(msg); } |