diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-15 21:27:16 +0200 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-08-15 21:27:16 +0200 |
| commit | 63997144cefd8100254b0a777abfdf2e8ab43346 (patch) | |
| tree | 58de079c949056b5dc4453b341cc558047b28f95 | |
| parent | 45842a8bd35af8528de915f4525938a17c31c826 (diff) | |
Fix odin changes
| -rw-r--r-- | src/server/response.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/response.odin b/src/server/response.odin index ddf6486..e42f9ae 100644 --- a/src/server/response.odin +++ b/src/server/response.odin @@ -4,7 +4,7 @@ import "core:fmt" import "core:encoding/json" send_notification :: proc (notification: Notification, writer: ^Writer) -> bool { - data, error := json.marshal(notification, context.temp_allocator) + data, error := json.marshal(notification, {}, context.temp_allocator) header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)) @@ -24,7 +24,7 @@ send_notification :: proc (notification: Notification, writer: ^Writer) -> bool } send_response :: proc (response: ResponseMessage, writer: ^Writer) -> bool { - data, error := json.marshal(response, context.temp_allocator) + data, error := json.marshal(response, {}, context.temp_allocator) header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)) @@ -44,7 +44,7 @@ send_response :: proc (response: ResponseMessage, writer: ^Writer) -> bool { } send_error :: proc (response: ResponseMessageError, writer: ^Writer) -> bool { - data, error := json.marshal(response, context.temp_allocator) + data, error := json.marshal(response, {}, context.temp_allocator) header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)) |