@@ -59,7 +59,6 @@ QHttpConnection::QHttpConnection(QTcpSocket *socket, QObject *parent)
5959
6060QHttpConnection::~QHttpConnection ()
6161{
62- qDebug () << " Disconnected. Deleting this connection object" ;
6362 delete m_socket;
6463 m_socket = 0 ;
6564
@@ -77,12 +76,10 @@ void QHttpConnection::parseRequest()
7776
7877 if ( arr.size () < 0 ) {
7978 // TODO
80- qDebug () << " Handle closed connection" ;
8179 }
8280 else {
8381 int nparsed = http_parser_execute (m_parser, &m_parserSettings, arr.data (), arr.size ());
8482 if ( nparsed != arr.size () ) {
85- qDebug () << " ERROR PARSING!" ;
8683 }
8784 }
8885 }
@@ -149,7 +146,6 @@ int QHttpConnection::HeadersComplete(http_parser *parser)
149146
150147int QHttpConnection::MessageComplete (http_parser *parser)
151148{
152- qDebug () << " Message complete" ;
153149 // TODO: do cleanup and prepare for next request
154150 QHttpConnection *theConnection = (QHttpConnection *)parser->data ;
155151 Q_ASSERT (theConnection->m_request );
@@ -175,7 +171,6 @@ int QHttpConnection::QueryString(http_parser *parser, const char *at, size_t len
175171 QHttpConnection *theConnection = (QHttpConnection *)parser->data ;
176172 Q_ASSERT (theConnection->m_request );
177173
178- qDebug () << " GOT query string" << QString::fromAscii (at, length) << " FAILING DUE TO NON-IMPLEMENTATION" ;
179174 Q_ASSERT (false );
180175 return 0 ;
181176}
@@ -185,7 +180,6 @@ int QHttpConnection::Url(http_parser *parser, const char *at, size_t length)
185180 QHttpConnection *theConnection = (QHttpConnection *)parser->data ;
186181 theConnection->m_request ->setUrl (QString::fromAscii (at, length));
187182
188- qDebug () << " GOT URL" << theConnection->m_request ->url ();
189183 return 0 ;
190184}
191185
0 commit comments