Girocco/Notify.pm: perform our own JSON body encoding
commit3ab0784f4206b69641660af3683ffe9662489e6b
authorKyle J. McKay <mackyle@gmail.com>
Thu, 11 Feb 2021 18:29:03 +0000 (11 11:29 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 11 Feb 2021 18:29:03 +0000 (11 11:29 -0700)
treebc1fc5d5ca009a10bbda2d25ee8a0862f83e2ae1
parent21295be57c3a337ba86685be2324e6e4da83d86e
Girocco/Notify.pm: perform our own JSON body encoding

Instead of relying on the LWP::UserAgent to magically just
"do the right thing", go ahead and explicitly encode the
body of the JSON POST notification and pass that on to be
posted.

This was already being done for the 'application/json' type
and now we also do it for the 'application/x-www-form-urlencoded'
type as well.

This provides total byte-exact control over what actually
goes out over the wire for a JSON POST notification.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Notify.pm