core-lightning/plugins/clnrest/utilities
ShahanaFarooqui e788f76f99 plugin/clnrest: do not read json payload if data length is zero
OpenAPI readme always includes `content-type: application/json` header, even when body parameters are empty.
But the server expects data if the content-type has been sent.
This results in a "Server Error" response for non-param requests from readme doc.
This only affects readme requests as it is designed to send the header by default.

Changelog-None
2023-08-31 16:13:35 +09:30
..
__init__.py plugin: clnrest 2023-07-25 19:20:16 +09:30
generate_certs.py plugin: clnrest 2023-07-25 19:20:16 +09:30
rpc_plugin.py plugins/clnrest: removing notifications queue in favor of websocket server 2023-07-25 19:20:16 +09:30
rpc_routes.py plugin/clnrest: do not read json payload if data length is zero 2023-08-31 16:13:35 +09:30
shared.py plugin/clnrest: do not read json payload if data length is zero 2023-08-31 16:13:35 +09:30