Skip to content

Commit

Permalink
fix: wrong http_ok_response
Browse files Browse the repository at this point in the history
  • Loading branch information
enghitalo committed Dec 7, 2024
1 parent 8d60cc7 commit 15e338e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v/v/src/controllers.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module main
import strings

const h_response_body = '{"message": "Hello, world!"}'
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 15e338e

Please sign in to comment.