summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
Diffstat (limited to 'plop.c')
-rw-r--r--plop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plop.c b/plop.c
index 9e44ab7..669ac1a 100644
--- a/plop.c
+++ b/plop.c
@@ -86,10 +86,10 @@ int handle_client(struct pollfd * pfd, const int shift_by)
return -1; // TODO: Handle errors properly
}
- struct request request = {0};
+ struct request request = {METHOD_INVALID, NULL};
parse_request(pfd->fd, &request);
- if (-1 == respond_with_body(pfd->fd, STATUS_OK, request.body))
+ if (-1 == respond_with_body(pfd->fd, STATUS_OK, method_str[request.method]))
{
// TODO: Handle errors properly
}