JSON: add a JSON Content-Type selection option
commitf696e20eb888aed90c13b5f121fa277c580efb96
authorKyle J. McKay <mackyle@gmail.com>
Tue, 9 Feb 2021 22:09:17 +0000 (9 15:09 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 9 Feb 2021 22:09:17 +0000 (9 15:09 -0700)
treeb7050001cec6bb853238e3d8ee93c555d4d82e48
parent2aad65d4b10ecbc0723a5d55ae9e3de510c4a80b
JSON: add a JSON Content-Type selection option

Allow a choice between the old mechanism of application/x-www-form-urlencoded
or the new mechanism of application/json that does not require any extra
URL decoding on receipt.

Always default to the old mechanism for backwards compatibility.

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