@@ -203,12 +201,13 @@ int http_codec::encode_request(const LibItsHttp__TypesAndValues::Request& p_requ
...
@@ -203,12 +201,13 @@ int http_codec::encode_request(const LibItsHttp__TypesAndValues::Request& p_requ
p_encoding_buffer.put_cs("Content-Length: ");
p_encoding_buffer.put_cs("Content-Length: ");
if(_ec.length!=0){
if(_ec.length!=0){
loggers::get_instance().log("http_codec::encode_request: Content-Length: %s",static_cast<constchar*>(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*/)));
loggers::get_instance().log("http_codec::encode_request: HTTP body field not present");
loggers::get_instance().log("http_codec::encode_response: HTTP body field not present");
_ec.length=0;
_ec.length=0;
_ec.is_content_length_present=0x00;
_ec.is_content_length_present=0x00;
}
}
// Encode Content-Length header
// Encode Content-Length header
p_encoding_buffer.put_cs("Content-Length: ");
if(_ec.length!=0){
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*/)));