]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a Content-Length of 0 to the response built by transmit_response_with_unsupported().
authorRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:49:45 +0000 (16:49 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 4 Apr 2007 16:49:45 +0000 (16:49 +0000)
(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

channels/chan_sip.c

index e213f724b50bfe25955863411274c27534086f39..bbccc6124ead8ac5dcd7e1339ac7e7cddc0a8549 100644 (file)
@@ -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);
 }