diff options
Diffstat (limited to 'plop.c')
-rw-r--r-- | plop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |