[OpenSIPS-Devel] [OpenSIPS/opensips] 18035f: ratelimit: don't add json object if map is empty
Răzvan Crainea
noreply at github.com
Wed Oct 9 04:57:58 EDT 2019
Branch: refs/heads/3.0
Home: https://github.com/OpenSIPS/opensips
Commit: 18035f4006a325e85ffe9d2bb965e3f045587bf8
https://github.com/OpenSIPS/opensips/commit/18035f4006a325e85ffe9d2bb965e3f045587bf8
Author: Razvan Crainea <razvan at opensips.org>
Date: 2019-10-09 (Wed, 09 Oct 2019)
Changed paths:
M modules/ratelimit/ratelimit_helper.c
Log Message:
-----------
ratelimit: don't add json object if map is empty
An object map was added for each hash entry, even though there were no
pipes in that hash, resulting in a huge list of empty hashes [{},{} ...]
This fix does not add an object in the resulted array if the map is
empty.
(cherry picked from commit a37642ab6db917c9ed8317cbccbbff1dc6433b3b)
More information about the Devel
mailing list