@@ -194,16 +195,18 @@ int http_codec::encode_request(const LibItsHttp__TypesAndValues::Request& p_requ
}
// Encode Content-length header
p_encoding_buffer.put_cs("Content-length: ");
if(_ec.length!=0){
p_encoding_buffer.put_cs(int2str(_ec.length+2/*Stand for the last CRLF*/));
loggers::get_instance().log("http_codec::encode_request: Content-length: %s",static_cast<constchar*>(int2str(_ec.length+2/*Stand for the last CRLF*/)));
p_encoding_buffer.put_cs(static_cast<constchar*>(int2str(_ec.length+2/*Stand for the last CRLF*/)));