Commit e5d0435d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use correct value when fixing Content-Length header because of inconsistent...

Use correct value when fixing Content-Length header because of inconsistent Content-Length header value and body length.
parent 5ecb5082
......@@ -1064,7 +1064,7 @@ static void check_content_length(belle_sip_message_t *msg, size_t body_len){
if (value!=(unsigned int)body_len){
belle_sip_warning("message [%p] has Content-Length [%u] and body size [%i] which are inconsistent, fixing it.",
msg, value, (int)body_len);
belle_sip_header_content_length_set_content_length(ctlen,(int)value);
belle_sip_header_content_length_set_content_length(ctlen,(int)body_len);
}
}
}else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment