From: Russell Bryant Date: Wed, 4 Apr 2007 16:49:45 +0000 (+0000) Subject: Add a Content-Length of 0 to the response built by transmit_response_with_unsupported(). X-Git-Tag: 1.4.7.1~481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b94c7c27cc93f5fd6eaa8183966bc4e54478099;p=thirdparty%2Fasterisk.git Add a Content-Length of 0 to the response built by transmit_response_with_unsupported(). (issue #9454, reported by makoto, fixed by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@60112 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e213f724b5..bbccc6124e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5815,6 +5815,7 @@ static int transmit_response_with_unsupported(struct sip_pvt *p, const char *msg respprep(&resp, p, msg, req); append_date(&resp); add_header(&resp, "Unsupported", unsupported); + add_header_contentLength(&resp, 0); return send_response(p, &resp, XMIT_UNRELIABLE, 0); }