mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +00:00
Better structure for the WebSocket validation failure message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -124,8 +124,11 @@ struct ast_json *ari_websocket_session_read(
|
||||
return ast_json_ref(message);
|
||||
}
|
||||
|
||||
#define VALIDATION_FAILED \
|
||||
"{ \"error\": \"Outgoing message failed validation\" }"
|
||||
#define VALIDATION_FAILED \
|
||||
"{" \
|
||||
" \"error\": \"InvalidMessage\"," \
|
||||
" \"message\": \"Message validation failed\"" \
|
||||
"}"
|
||||
|
||||
int ari_websocket_session_write(struct ari_websocket_session *session,
|
||||
struct ast_json *message)
|
||||
|
Reference in New Issue
Block a user