diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-11-07 14:48:38 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-11-07 14:48:38 +0100 |
| commit | 75c285df42289f366c3a44dc8e68c24cffc3d750 (patch) | |
| tree | 9ee98d9c8e07b10b9ff207f1f1568ad02e5c4bf6 /src/server/response.odin | |
| parent | 917290ea36927e59b13b72b9e0c53a5fce463098 (diff) | |
Add new matrix type
Diffstat (limited to 'src/server/response.odin')
| -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 0d9cf2e..c132532 100644 --- a/src/server/response.odin +++ b/src/server/response.odin @@ -7,7 +7,7 @@ send_notification :: proc (notification: Notification, writer: ^Writer) -> bool data, error := json.marshal(notification, context.temp_allocator); - header := fmt.tprintf("Content-Length: {}\r\n\r\n", len(data)); + header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)); if error != .None { return false; @@ -28,7 +28,7 @@ send_response :: proc (response: ResponseMessage, writer: ^Writer) -> bool { data, error := json.marshal(response, context.temp_allocator); - header := fmt.tprintf("Content-Length: {}\r\n\r\n", len(data)); + header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)); if error != .None { return false; @@ -49,7 +49,7 @@ send_error :: proc (response: ResponseMessageError, writer: ^Writer) -> bool { data, error := json.marshal(response, context.temp_allocator); - header := fmt.tprintf("Content-Length: {}\r\n\r\n", len(data)); + header := fmt.tprintf("Content-Length: %v\r\n\r\n", len(data)); if error != .None { return false; |