diff options
Diffstat (limited to 'Swiften/Client')
| -rw-r--r-- | Swiften/Client/ClientXMLTracer.cpp | 14 | ||||
| -rw-r--r-- | Swiften/Client/CoreClient.h | 2 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/Swiften/Client/ClientXMLTracer.cpp b/Swiften/Client/ClientXMLTracer.cpp index 405e3d1..d2b5446 100644 --- a/Swiften/Client/ClientXMLTracer.cpp +++ b/Swiften/Client/ClientXMLTracer.cpp @@ -25,14 +25,14 @@ void ClientXMLTracer::printData(char direction, const SafeByteArray& data) {  	printLine(direction);  	if (bosh) {  		std::string line = byteArrayToString(ByteArray(data.begin(), data.end()));  -		size_t endOfHTTP = line.find("\r\n\r\n"); -		if (false && endOfHTTP != std::string::npos) { -			/* Disabled because it swallows bits of XML (namespaces, if I recall) */ -			std::cerr << line.substr(0, endOfHTTP) << std::endl << beautifier->beautify(line.substr(endOfHTTP)) << std::endl; -		} -		else { +// Disabled because it swallows bits of XML (namespaces, if I recall) +//		size_t endOfHTTP = line.find("\r\n\r\n"); +//		if (false && endOfHTTP != std::string::npos) { +//			std::cerr << line.substr(0, endOfHTTP) << std::endl << beautifier->beautify(line.substr(endOfHTTP)) << std::endl; +//		} +//		else {  			std::cerr << line << std::endl; -		} +//		}  	}  	else {  		std::cerr << beautifier->beautify(byteArrayToString(ByteArray(data.begin(), data.end()))) << std::endl; diff --git a/Swiften/Client/CoreClient.h b/Swiften/Client/CoreClient.h index c9da0eb..16f7cb1 100644 --- a/Swiften/Client/CoreClient.h +++ b/Swiften/Client/CoreClient.h @@ -204,7 +204,7 @@ namespace Swift {  			/**  			 * Called before onConnected signal is emmitted.  			 */ -			virtual void handleConnected() {}; +			virtual void handleConnected() {}  		private:  			void handleConnectorFinished(boost::shared_ptr<Connection>, boost::shared_ptr<Error> error); | 
 Swift
 Swift