diff options
author | Richard Mudgett <rmudgett@digium.com> | 2014-04-23 18:03:41 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2014-04-23 18:03:41 +0000 |
commit | e6c4b9752116ecc71220c03db1493a05c38b051a (patch) | |
tree | bde401d1bc1831a2cd14419d5bc6d42ce7b309f6 /UPGRADE-10.txt | |
parent | 4b9b4790d95624152b2b0f0e474a9290c94516a6 (diff) |
http: Fix spurious ERROR message in responses with no content.
Backport -r411687 and fix the fix because content_length is the length of
out plus the length of the file controlled by fd.
When a response has an out content length of 0, fwrite would be called to
write a buffer with no data in it. This resulted in the following classic
error message:
[Apr 3 11:49:17] ERROR[26421] http.c: fwrite() failed: Success
This patch makes it so that we only attempt to write the content of out if
the out string is non-zero.
........
Merged revisions 412922 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 412923 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 412924 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412925 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'UPGRADE-10.txt')
0 files changed, 0 insertions, 0 deletions