[Zrouter-src] ZRouter.org: push to zconf++ libzhttp/request_parser.cpp zconf++...

zrouter-src at zrouter.org zrouter-src at zrouter.org
Mon Jan 23 20:33:20 UTC 2012


details:   /rev/4b22729e2798
changeset: 52:4b22729e2798
user:      "Nicolai Petri <nicolai at petri.dk>"
date:      Mon Jan 23 21:32:52 2012 +0100
description:
Remove verbose debug output.

diffstat:

 libzhttp/request_parser.cpp  |  2 --
 zconf++/http_json_handler.cc |  2 --
 2 files changed, 0 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 87352b318420 -r 4b22729e2798 libzhttp/request_parser.cpp
--- a/libzhttp/request_parser.cpp	Mon Jan 23 18:30:59 2012 +0100
+++ b/libzhttp/request_parser.cpp	Mon Jan 23 21:32:52 2012 +0100
@@ -264,10 +264,8 @@
 					// http 1.1 with content length
 					if (req.http_version_major == 1 && req.http_version_minor >= 1 && req.headers.find("Content-Length") != req.headers.end()) {
 						int expected_size = boost::lexical_cast<int>(req.headers["Content-Length"]);
-						//std::cout << " size " << expected_size << " vs " << req.body.size() << std::endl;
 						if (expected_size == req.body.size()) {
 							// Completed!!!
-							std::cout << "REQ COMPLETED3" << std::endl;
 							return true;
 						}
 
diff -r 87352b318420 -r 4b22729e2798 zconf++/http_json_handler.cc
--- a/zconf++/http_json_handler.cc	Mon Jan 23 18:30:59 2012 +0100
+++ b/zconf++/http_json_handler.cc	Mon Jan 23 21:32:52 2012 +0100
@@ -74,9 +74,7 @@
 				return;
 			}
 			leaf = &((*leaf)[*it]);
-			cout << "REQ PART: " << *it << endl;
 		}
-		//	cout << "Handling request for << " << uri_parts[1] << ":" << uri_parts[2] << endl;
 		rep.status = reply::ok;
 		#ifdef JSON_WRITE_USING_STRING
 		std::string resp = ModelWriter::write(leaf, "");


More information about the Zrouter-src mailing list