Commit 1ef7f33a authored by jehan's avatar jehan
Browse files

don't set Expires header to 0 in case of TCP if body is present

parent 2c19e31f
......@@ -440,6 +440,7 @@ static void channel_on_sending(belle_sip_channel_listener_t *obj, belle_sip_chan
* However some servers (opensips) are confused when they receive a SIP/UDP packet without Content-Length (they shouldn't).
*/
if (!content_length
&& belle_sip_message_get_body_size(msg) == 0 /*if body present, content_length is automatically added at channel level*/
#ifndef BELLE_SIP_FORCE_CONTENT_LENGTH
&& strcasecmp("udp",belle_sip_channel_get_transport_name(chan))!=0
#endif
......
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