aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/httpsrv/httpconnectionmonitor.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/httpsrv/httpconnectionmonitor.cpp b/src/test/httpsrv/httpconnectionmonitor.cpp
index 4eb6817..eaadb36 100644
--- a/src/test/httpsrv/httpconnectionmonitor.cpp
+++ b/src/test/httpsrv/httpconnectionmonitor.cpp
@@ -49,15 +49,22 @@ bool HttpConnectionMonitor::onNewConnection( Connection *pCon )
49 else 49 else
50 { 50 {
51 printf("Non get: %s\n", hp.getRequestTypeStr() ); 51 printf("Non get: %s\n", hp.getRequestTypeStr() );
52 pCon->appendOutput("HTTP/1.1 100 Continue\r\n\r\n");
52 } 53 }
53 pCon->writeOutput(); 54 pCon->writeOutput();
55 //for( int j = 0; j < 50; j++ )
56 {
57 pCon->readInput( 1, 0 );
58 //printf("Size so far: %d\n", pCon->getInputAmnt() );
59 }
54 60
55 if( pCon->hasInput() ) 61 if( pCon->hasInput() )
56 { 62 {
57 std::string s( pCon->getInput(), pCon->getInputAmnt() ); 63 std::string s( pCon->getInput(), pCon->getInputAmnt() );
58 64
59 printf("Reamining data\n==============\n%s\n==============\n", 65 pCon->printInputDebug();
60 s.c_str() ); 66 //printf("Reamining data\n==============\n%s\n==============\n",
67 // s.c_str() );
61 } 68 }
62 69
63 pCon->disconnect(); 70 pCon->disconnect();