]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 60112 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:50:31 +0000 (16:50 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:50:31 +0000 (16:50 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r60112 | russell | 2007-04-04 11:49:45 -0500 (Wed, 04 Apr 2007) | 3 lines

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/trunk@60114 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 78986abfc1fd0f7ca95ba0ca570751f6139dbfdf..dbf54639e54e28522a1f0de906ddc582a297316c 100644 (file)
@@ -6223,6 +6223,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);
 }