diff options
author | Scott Griepentrog <sgriepentrog@digium.com> | 2014-03-18 15:45:04 +0000 |
---|---|---|
committer | Scott Griepentrog <sgriepentrog@digium.com> | 2014-03-18 15:45:04 +0000 |
commit | eecb74a9a730a87bcbbe0cba5b961e7e457d0968 (patch) | |
tree | c74c9dd0a504c82dab46d86c4c3ad9cb755d62d1 /sample.call | |
parent | 77db94a25a39754f7d79b46e3067bc28376a2865 (diff) |
ARI: allow json content type with zero length body
When a request was received with a Content-type of json,
the body was sent for json parsing - even if it was zero
length. This resulted in ARI requests failing that were
valid, such as a channel DELETE with no parameters. The
code has now been changed to skip json parsing with zero
content length.
(closes issue SWP-6748)
Reported by: Samuel Galarneau
Review: https://reviewboard.asterisk.org/r/3360/
........
Merged revisions 410858 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'sample.call')
0 files changed, 0 insertions, 0 deletions