Skip to content

Commit

Permalink
fix(examples): fix http_server.lua
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Jul 1, 2023
1 parent 51c49bf commit d276f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/network/http_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local function handler(con, req)
con:send('<p>', name, ': ', value, '</p>\n')
end

con:send('<h2>body:', con:read_body(), '</h2>\n')
con:send('<h2>body:', con:read_body() or '', '</h2>\n')
else
con:serve_file(req)
end
Expand Down

0 comments on commit d276f6c

Please sign in to comment.