Skip to content

Commit

Permalink
fix: http_ok_response
Browse files Browse the repository at this point in the history
  • Loading branch information
enghitalo committed Dec 9, 2024
1 parent e192eec commit 2abb3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/vanilla_http_server/src/controllers.v
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2abb3da

Please sign in to comment.