diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/clog.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -269,9 +269,8 @@ render_posts_query(struct post_request *post_req) { ); } else { // post_req->type == HTML rows = kore_pgsql_ntuples(&sql); - // FIXME: add test for this: - // if (post_req->resource && rows == 0) { - if (rows == 0) { + // TODO: Add test for this; When database is empty, don't return 404 for base request. + if (post_req->resource && rows == 0) { post_req->resp_status = HTTP_STATUS_NOT_FOUND; goto out; } |