1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

relay/api: always set "body_type" and "body" (null if there is no body) in websocket frame

This commit is contained in:
Sébastien Helleu
2024-06-29 19:37:44 +02:00
parent 2184af9d99
commit f8f6e100d0
5 changed files with 63 additions and 36 deletions
@@ -58,7 +58,9 @@ extern int relay_api_protocol_command_delay;
STRCMP_EQUAL("{\"code\":" #__code "," \
"\"message\":\"" __message "\"," \
"\"request\":\"" __request "\"," \
"\"request_body\":" __body "" \
"\"request_body\":" __body "," \
"\"body_type\":null," \
"\"body\":null" \
"}", \
data_sent);