diff --git a/examples/vanilla_http_server/src/controllers.v b/examples/vanilla_http_server/src/controllers.v index 03cfcee3ec284a..7a1cbcea1acc8a 100644 --- a/examples/vanilla_http_server/src/controllers.v +++ b/examples/vanilla_http_server/src/controllers.v @@ -2,7 +2,7 @@ module main import strings -const http_ok_response = 'HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: 1\r\nConnection: keep-alive\r\n\r\n1'.bytes() +const http_ok_response = 'HTTP/1.1 200 OK\r\nContent-Type: application/json\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n'.bytes() const http_created_response = 'HTTP/1.1 201 Created\r\nContent-Type: application/json\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n'.bytes()